You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var account = await this._riotClient.AccountV1().GetByAccessTokenAsync(
RegionalRoute.AMERICAS,
$"Bearer {accessToken}",
cancellationToken);
I receive a 400 as a result. I believe this is due to also including the api_key in the resulting call, because I see that behavior from postman as well. Here's what is working and isn't working for me locally:
Not working: GET https://americas.api.riotgames.com/riot/account/v1/accounts/me?api_key=RGAPI-136f0.................
Headers: { Authorization: "Bearer eyJ6aXAiOiJERUYiLCJraWQiO..." }
Working: GET https://americas.api.riotgames.com/riot/account/v1/accounts/me (no api_key)
Headers: { Authorization: "Bearer eyJ6aXAiOiJERUYiLCJraWQiO..." }
The text was updated successfully, but these errors were encountered:
Upon further review, given that Camille auto-generates endpoints based on Riot's documentation, I think this is actually a Riot API problem instead of Camille. If their documentation https://developer.riotgames.com/apis#account-v1/GET_getByAccessToken correctly excluded the API Key in the request, I believe Camille would consume that correctly and it would work as intended. Will follow up with DevRel
I am calling this endpoint as:
I receive a 400 as a result. I believe this is due to also including the
api_key
in the resulting call, because I see that behavior from postman as well. Here's what is working and isn't working for me locally:Not working:
GET https://americas.api.riotgames.com/riot/account/v1/accounts/me?api_key=RGAPI-136f0.................
Headers:
{ Authorization: "Bearer eyJ6aXAiOiJERUYiLCJraWQiO..." }
Working:
GET https://americas.api.riotgames.com/riot/account/v1/accounts/me
(noapi_key
)Headers:
{ Authorization: "Bearer eyJ6aXAiOiJERUYiLCJraWQiO..." }
The text was updated successfully, but these errors were encountered: