OAuth Access Token

Name Field Name Type Value Description Required
Grant type grant_type - - You can get this value from your register account. Yes
Client ID client_id - - You can get this value from your register account. Yes
Client Secret client_secret - - You can get this value from your register account. Yes

Request Type

POST


Sample Request URL

https://test-api.carespan.clinic/OauthAPI/authorize

Response
        
        {
            "access_token": "e37b51a1f65e28bfc9b7557044ecdd2903678716",
            "expires_in": 3600,
            "token_type": "Bearer",
            "scope": "app"
        }

        Error: 

        {
            "error": "invalid_client",
            "error_description": "The client credentials are invalid"
        }