Connecting your application
The Learningpod API allows the end users of your application to sign up for a Learningpod account and log in. Once an end user is authenticated, you can use an access token to execute actions on behalf of that user. This access token is a unique string that identifies the user.
When your end users first access your application, redirect them to:
If your end users grant approval, they will be redirected back to the callback URL that was specified when you registered your application. Included in the redirect will be the authorization code that you can exchange for an access token:
Finally, exchange the authorization code for the access token by posting to:
You can post to the endpoint with one of the following media types:
You will receive the following in response. (Note: The default is XML, but if the request is made in JSON, the response will be in JSON.)
To execute actions on the user's behalf, you can pass the access token in the request headers like this:
All actions related to content creation or an individual user's practice experience must be signed.
Userless access is also possible for certain endpoints where knowing the specific user isn't necessary. To make a userless request, simply append your client ID and client secret to the API URL: