App Clients
An App Client represents the external system or application that's calling Nitro APIs. Each system that integrates with Nitro should have its own App Client to ensure the identification, authentication, and management of API access. Typically, the number of systems you have calling Nitro APIs is the number of App Clients you need for your program. A maximum of 5 are allowed.
Token Types
|
Token |
Use |
Restrictions |
Expiration and Renewal |
Exposure |
|---|---|---|---|---|
|
Nitro API (NWT) |
|
Every API method is allowed without restriction |
|
|
|
Gamification (GWT) |
|
No access to public APIs |
|
|
|
Grants acess to web components |
|
|
|
Token Creation
In your application, include the code to generate an access token.
|
Token |
Details |
|---|---|
|
API
Nitro Studio
|
|
|
API call via POST https://api.bunchball.com/gamification-token
|
Create an App Client
- Open Nitro Studio > Configuration > App Client.
- Click New App Client.
You cannot edit an existing App Client.
- In the Name field, enter a descriptive name that does not contain spaces.
The name must be unique across all sites in the environment. In Sandbox, you may need to preface the name with your company or some other unique identifier as there are multiple internal (Nitro) and external (customer) test sites in the environment. - Click Save.
Use caution if you delete an App Client as external code may depend on this connection.
App Client Examples
Example 1: You have one application with the Impact block embedded in it.
-
Create one App Client named for the application
-
On user login to the application, create a Gamification Token (GWT) for the block embed
-
When a user interacts with the application, send actions via POST /users/{userId}/actions
Example 2: You have Impact embedded in your primary application and send actions from multiple other services.
-
Create one App Client for the application
-
On user login to the application, create a Gamification Token (GWT) for the block embed
-
-
Create one App Client per unique service that sends actions to Nitro
-
Make calls to POST /users/{userId}/actions
-
Example 3: Your program uses custom API calls.
-
Create one App Client per backend application
-
Make the appropriate calls to the public Nitro API
-
NEVER expose the Nitro API Token (NWT) publicly
-
Do not include the token on the HTML page
-
Do not make AJAX calls directly from the browser to the Nitro API
-
See also
Access will be denied if the token does not meet security requirements.