Skip to content

Commit

Permalink
Update shop endpoint to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgi-o authored Sep 24, 2024
1 parent 23ac9f3 commit 6e30c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion valorant/shop.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getShop = async (id, account = null) => {
console.log(`Fetching shop for ${user.username}...`);

// https://github.com/techchrism/valorant-api-docs/blob/trunk/docs/Store/GET%20Store_GetStorefrontV2.md
const req = await fetch(`https://pd.${userRegion(user)}.a.pvp.net/store/v2/storefront/${user.puuid}`, {
const req = await fetch(`https://pd.${userRegion(user)}.a.pvp.net/store/v3/storefront/${user.puuid}`, {
headers: {
"Authorization": "Bearer " + user.auth.rso,
"X-Riot-Entitlements-JWT": user.auth.ent,
Expand Down

0 comments on commit 6e30c0c

Please sign in to comment.