重新整理訪問令牌
https://euapi.ttlock.com/oauth2/token
通過使用者授權時返回的refresh_token(預設有效期為10年)獲取新的access_token、refresh_token。
2.1 HTTP請求方式
POST
2.2 返回格式
JSON
2.3 參數說明
名稱 是否必需 參數值 描述
client_id Y 開放平臺註冊時分配的app_id
client_secret Y 開放平臺註冊時分配的app_secret
grant_type Y refresh_token
refresh_token Y Refresh token
2.4 返回參數
名稱 型別 示例 參數說明
access_token String Y Access token
expires_in Int 10 Access token過期時間,單位秒
scope String user,key,room 許可權範圍
refresh_token String f45a713ef706d09c892084ee7e350384 Refresh token