05-25-2018 11:11
05-25-2018 11:11
I am exchanging my access code for an access token with this response:
[My Exchange Response] --
Array ( [http] => Array ( [method] => POST [header] => Authorization: Basic <censored> Content-Type: application/x-www-form-urlencoded Content-Length: 186 [content] => clientId=<censored>&grant_type=authorization_code&redirect_uri=<censored>&code=<censored>&expires_in=10 ) )
Note: Mind you, this authentication workflow is working no problem for me; I am attempting to develop a way of exchanging refresh tokens for access tokens.
[Web API Response] --
Here is the response I get from the web API:
Array ( [access_token] => <censored> [expires_in] => 28800 [refresh_token] => <censored> [scope] => social sleep settings nutrition weight activity heartrate profile location [token_type] => Bearer [user_id] => <censored> )
[ASK] --
Can somebody from the development team please explain why I only get the default time?
Thanks!