Skip to content

Instantly share code, notes, and snippets.

@libern
Last active August 25, 2016 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libern/5f27124a25a8b5f538ec4a57f78ac8e9 to your computer and use it in GitHub Desktop.
Save libern/5f27124a25a8b5f538ec4a57f78ac8e9 to your computer and use it in GitHub Desktop.

Base URI:

production https://pkr.someline.com/api


Headers

Name Description Required
Accept application/x.someline.v1+json yes

User Authentication

Get Access Token By Client Credentials

POST /oauth/access_token

Parameters

Name Type Required Value
username string yes ''
password string yes ''
grant_type string yes 'client_credentials'

Success Response

HTTP Status 200


      {
        "access_token": "XervdrFWDBo2SlqcTCMLyYLaI5TnSqBKnaXrd6Xb",
        "token_type": "Bearer",
        "expires_in": "3600"
      },

Get Access Token By Password

POST /oauth/access_token

Parameters

Name Type Required Value
client_id string yes 'SomelineFvGXRmBv'
client_secret string yes 'WFYBPbkOBv7hTby8vGL2SPOOq2GKYQdSIDGXcLsS'
username string yes ''
password string yes ''
grant_type string yes 'password'

Success Response

HTTP Status 200


      {
        "access_token": "XervdrFWDBo2SlqcTCMLyYLaI5TnSqBKnaXrd6Xb",
        "token_type": "Bearer",
        "expires_in": "3600",
        "refresh_token": "Some Random Strings"
      },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment