Skip to content

how to get items name #6

Locked Answered by KTNG-3
Cansiny0320 asked this question in Q&A
Discussion options

You must be logged in to vote
import { AuthClient } from "@valapi/auth";
import { Client as WebClient } from "@valapi/web-client";
import { Client as ValorantApi } from "@valapi/valorant-api.com";

import { Region } from "@valapi/lib";

const config = {
    region: Region.Default.Asia_Pacific,
    throwOnError: true
};

const authClient = new AuthClient(config);

const login = async () => {
    await authClient.login("Username", "Password");
};

const main = async () => {
    await login();
    const subject = authClient.getSubject();
    const webClient = WebClient.fromJSON(authClient.toJSON());
    const ApiClient = new ValorantApi({
        language: "zh-CN"
    });

    const data = await webClient.Store.getStoref…

Replies: 20 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by KTNG-3
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5 on January 17, 2023 16:18.