Lifelog API Explorer: Authorization request could not be completed

257 Views Asked by At

I'd like to use the lifelog api for my own webapplication to store my own data and adapt it to my needs. I tried looking into it but unfortunately I'm not able to get the api explorer (to see how it works) to work. When I try to use the Authenthication OAuth2 and log in to my google account it constantly gives me the following error:

Authorization request could not be completed. Reason: Access token request to API provider failed.

If the problem persists, please contact Customer Support.

Unfortunately I don't have much experience with REST based services and I've searched for an answer here but didn't find anything to get started. I use the latest version of Google Chrome and have also tried Edge (I'm not wondering why it wouldnt work there). Could anyone help?

1

There are 1 best solutions below

5
On BEST ANSWER

Unfortunately the API Explorer is not working correctly right now. The team is working to fix the issue. In the meantime you can try postman to play around with the API.

https://www.getpostman.com/

Here is one way to make it happen:

  1. Setup a get request to: https://platform.lifelog.sonymobile.com/v1/users/me
  2. Under "Authorization" click "Get Access Token".
  3. Here you will see a callback URL. Go in to your Lifelog API Management and register an application with the provided callback: https://developer.sony.com/develop/services/lifelog-api/create-app/
  4. Once done add the client id and secret provided from your API Management console in to Postman and click "Get Access Token"
  5. You will be provided with an access token. Give this a name and click save.
  6. Now click on Headers and add "Authorization" as the "URL Parameter Key" and "Bearer ##Enter your access token here##" as the "Value"
  7. At this point click send and you should receive results from the API.

Let me know if this does not work for you.