Skip to end of metadata
Go to start of metadata

C# .Net 4.5.1 Example

The following code example shows how to connect to our API and performs the following actions:

  1. Calls api/4.5/ping/noauth to show a non-authenticated GET request
  2. Calls api/4.5/ping/auth to show an unauthorised GET request
  3. Calls api/token to retrieve the authorisation token (POST)
  4. Calls api/4.5/ping/auth with the token to show an authorised GET request
  5. Calls api/4.5/ping/exampleerror with the same token to show re-using the token and how an error will look (POST)

Code

Results

Tips

 

The user account specified in the example code is a dummy account, please use your own ClickSuper provided credentials.

 

  • No labels