Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use your application's credentials and the user's credentials to retrieve an access token by sending a HTTP POST message to https://app1pub.smappee.net/dev/v1/oauth2/token

Code Block
POST /dev/v3/oauth2/token HTTP/1.1
Host: app1pub.smappee.net
Content-Type: application/x-www-form-urlencoded;charset=UTF-8

grant_type=password&
client_id=[YOUR_APP_ID]&
client_secret=[YOUR_CLIENT_SECRET]&
username=[USER_NAME]&
password=[USER_PASSWORD]

(info) for readability the above parameters are separated by CRs, in practice the HTTP body should be one concatenated string separating the key value pairs with a &

If the server side validation of the passed credentials went well, you will receive a HTTP OK containing the token information (see below). This token has to be passed with each successive API call. The token has an expiry period of 10 hours (36000 seconds). After the token has expired, you can use the Refresh token to retrieve a new access token

...