Using a service account to push cards

独自空忆成欢 提交于 2019-12-13 03:35:33

问题


I'm trying to create a php page which will authenticate using a service account and will create a new timeline card for the application users.

(It's working using a client ID for web sites)

So I have created a service account, uploaded the key.p12 file to the server and I keep getting this error message:

Uncaught exception 'Google_Auth_Exception' with message 'Error refreshing the OAuth2 token, message: '{ "error" : "invalid_grant" }''

As I understood I also need to give access to the service user (the email address generated) in my app (I saw an example where this is how its done with Google Analytics) but where can I do it with the mirror service / my google glass application?

Basic question is: How do I authenticate with mirror using a service account.

Thank you!

来源:https://stackoverflow.com/questions/25139733/using-a-service-account-to-push-cards

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!