v1

latestOpenAPI 3.1.02026-08-04164270844.7 KB
Authentication

Create an access token for plugin (client)

Creates an OAuth access token. Once generated, the token authorizes access to the 360Learning API v2 resources for 1 hour. It must be included in the Authorization header of each request as Bearer.

post/api/v2/plugin/oauth2/client-token

Request body

temporaryTokenstring required

The temporary token from an authed user on a core product.

Example request

{
  "temporaryToken": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55SWQiOiI1NGJkMDA1MTQyYzM5YWJhMDFmZmQ5OTkiLCJ1c2VySWQiOiI1ODIwNTJkNGU4NTg5ZjBkYTgwY2MyYzciLCJwbHVnaW5JZCI6IjY4NjcwNmQwZjVhOGEwNDFhNzU2MjUyNiIsInR5cGUiOiJwbHVnaW5FeGNoYW5nZSIsImlhdCI6MTc1Mzk1NTkyNSwiZXhwIjoxNzUzOTU1OTg1fQ.roxrGR6Z2utCcVa_vqatYLmMMy82fKcs1KxAdwWJNXuoW7dJTv8ODjZA0FsMI26kRlgTkJl3CDMn6eCqEmrgKw"
}

Response

Returns an access token that must be used in all your calls to public API endpoints. This access token can only be used inside a plugin.

token_type'Bearer' required

The type of the access token.

access_tokenstring required

The access token that authorizes access to API resources. Include the access token in the Authorization header of every request as Bearer.

expires_innumber required

The lifetime of the access token in seconds.

Example response

{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBaU1qdVNjLW9pelVYWHBZVnZWbDZrSklsb2FNWDNWYzZSdWp4QnlPX05FIn0"
}