Inhalt |
---|
Introduction
...
Getting an authentication token
To be able to use the functionality provided in the REST API it is necessary to obtain an authentication token that will be used in all of the requests dedicated to do linguistics checks.
In this section we will be creating a class that does all the work for us. The basic skeleton of the class is shown in the listing below:
...
Parameter | Description |
---|---|
host | The address of the server hosting Congree Authoring Server |
ruleSet | The name of the ruleset the sentence is checked with. |
token | The Bearer token acquired during the authentication. |
sentence | A well-formed XML structure. |
The request returns a JSON object that is described here: