我已经有了access_token,但它是一个short_lived_token。 对于我的应用程序,我需要一个long_lived_token,我知道如何在java中获取它,但我正在使用Python。
有人知道如何在python中获得long_lived access_token吗? 或者如何在python中将我的short_lived更新为long_lived?
I already have an access_token but it's a short_lived_token. For my application I need a long_lived_token, and I know how to get it in java, but I'm using Python.
Does anybody know how to get a long_lived access_token in python? Or how to update my short_lived to a long_lived in python?
最满意答案
根据内部文档, Python SDK中定义了一个方法extend_access_token
延长有效OAuth访问令牌的到期时间。
这将是你正在寻找的东西。
There is a method extend_access_token defined in the Python SDK which would, as per internal documentation
Extends the expiration time of a valid OAuth access token.
Which would be the thing you are looking for.
更多推荐
发布评论