Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
    public static final String AUTHENTICATION = "https://api.watsonwork.ibm.com/oauth/token";
    public static final String GRAPHQL = "https://api.watsonwork.ibm.com/graphql";
    public static final String V1_SPACE_ID = "https://api.watsonwork.ibm.com//v1/spaces/";

The authentication endpoint is passed when instantiating the WWClient class. The GraphQL endpoint is used by the WWGraphQLEndpoint class, which should be used for all GraphQL queries and mutations, to ensure only supported calls are made with the correct arguments, fields and children. The v1 space id endpoint is used for posting messages to a space.