Permanent access token with YouTube api?

故事扮演 提交于 2019-12-03 13:38:46

Finally found it. They don't expire. You have to make sure to perform the last step, exchanging your single use token for a session token. That session token should not expire.

Here's what my step (using the Google AuthSub Client Library) looks like in C#:

sessionToken = AuthSubUtil.exchangeForSessionToken(authToken, null);

Simple enough. I'm sure it's probably something very similar for the PHP library. Just store that sessionToken instead of the authToken

Check out the AuthSub process flow. Specifically the very last step (#7)

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