Hi! There're a few things that seem to be wrong. First, it must be a POST request but you're using the GET method. Second, both the Client ID and Secret are missing. Third, to form-URL encode the parameters, you should write something like this (the header is automatically added):
All Comments (1) Comments
$response = Http::asForm()->post('https://myanimelist.net/v1/oauth2/token', [ 'client_id' => 'XXX', 'client_secret' => 'XXX', 'grant_type' => 'refresh_token', 'refresh_token' => 'XXX', ]);Let me know if you're still having trouble with this.