Can I access Lifelog APIs from my android applicat

2019-09-14 05:47发布

When ever I tried to authorize my android application. But It gives me Unauthorized user error..

Can i access lifelog data on my android application using these lifelog REST API's?

could some one suggest me the steps to configure my android app to read data from lifelog API's

2条回答
该账号已被封号
2楼-- · 2019-09-14 06:34

the LifeLog API is a RESTful API, meaning, you can, in theory, access it from anywhere as long as you can create HTTP requests. The authentication used is standard Oauth2 which also is defacto used by most APIs like Google, Facebook, Twitter etc.

Other than that, there are a couple of Android libraries available which can make your life a lot easier, wrapping the HTTP requests into simple Java objects and methods.

https://github.com/championswimmer/Lifelog-Android-Library

https://github.com/yaeda/lifelog-android-sdk

Disclaimer: The first library linked has been co-authored by me

查看更多
走好不送
3楼-- · 2019-09-14 06:41

What steps have you tried to retrieve data from the API? Are you following the instructions from the Lifelog Authorization page?

https://developer.sony.com/develop/services/lifelog-api/authentication/

Some quick things you can do are:

  1. Be sure that there are no spaces in your client id
  2. Try creating a new client id and secret to be sure that there is nothing wrong with your current credentials
  3. Try using Postman as a quick way to verify that there is not something else causing the issue. For instance something network related. Here is a link to a quick explanation on how to get going: Lifelog API Explorer: Authorization request could not be completed
查看更多
登录 后发表回答