referencing by “
OAuth 2.0 Making requests on behalf of users | Docs | Twitter Developer Platform
”
On the evening of the 25th, I called “oauth2/token - Access Token” api with “offline.access” scope.
And on the morning of the 26th, I called the “oauth2/token - refresh token” api.
Then, 403 error occured. Even if it’s only been a day.
// request
okhttp: → POST
https://api.twitter.com/2/oauth2/token
okhttp: Content-Type: application/json; charset=UTF-8
okhttp: Content-Length: 189
okhttp: {“refresh_token”:“enJkZWlCLWVrSG96ZTBxY1VtVmZHZ1BzYzJ3YUU5YURsbzF0TnM5THI4eVg1OjE2NjE0MzQ2NzY3MTc6MTowOnJ0OjE”,“grant_type”:“refresh_token”,“client_id”:“NkI1REl1NEI0YlVDS0gySXFjWTY6MTpjaQ”}
okhttp: → END POST (189-byte body)
// response
okhttp: ← 403
https://api.twitter.com/2/oauth2/token
(714ms)
okhttp: cache-control: no-cache, no-store, max-age=0
okhttp: content-length: 0
okhttp: x-response-time: 106
okhttp: x-connection-hash: f372f89210a4fa3d4952b8e81d2e2d774a78bb2ca6601b28a8839b789e69d67c
okhttp: date: Fri, 26 Aug 2022 01:02:13 GMT
okhttp: server: tsa_m
okhttp: ← END HTTP (0-byte body)
Why are yo doing this? Please help