阅读文档说它只能使用端点交换短期令牌.
由于我们没有短期令牌,我们如何在不必每60天手动重新授权的情况下执行此服务器端?
Using the new endpoint below,you will be able to extend the
expiration time of an existing,non-expired,short-lived user
access_token. Please note,the endpoint can only be used to extend
the short-lived user access_tokens. If you pass an access_token that
had a long-lived expiration time,the endpoint will simply pass that
same access_token back to you without altering or extending the
expiration time.To get the long-lived user access_token simply pass your own client_id
(your app_id),your app_secret,and the non-expired,short-lived
access_token to the endpoint below. You will be returned a new
long-lived user access_token; this access_token will exist in addition
to the short-lived access_token that was passed into the endpoint.
If you would like to refresh a still valid long-lived access_token,you will have to get a new short-lived user access_token first and then call the same endpoint below. The returned access_token will have a fresh long-lived expiration time,however,the access_token itself may or may not be the same as the prevIoUsly granted long-lived access_token.
原文地址:https://www.jb51.cc/php/130461.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。