Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Mediafire API 练习 Web 服务编程。我可以使用版本 1 令牌获取信息。无论如何在我的代码中十分钟后自动更新会话令牌?目前,我只是在需要新令牌时重新运行我的构建。
当您收到“会话令牌无效或过期”响应时,您必须在代码中添加 API 调用以更新会话令牌。
API uri 是:
/api/user/renew_session_token.php
参数:
session_token (the session token) response_format (your preferred response format)
API 说明:
将会话令牌 v1 会话令牌的生命周期刷新为十分钟,或返回一个生命周期为十分钟的新会话令牌 v1 会话令牌。少于五分钟的会话令牌将返回而不被刷新。