(account)
All Requests related to account(s) are grouped here.
- bookmarkBadge
- connect
- createDeveloperApp
- createSession
- deleteConnection
- deleteImages
- emailSendVerification
- emailSubscription
- emailVerify
- getApps
- getBadgeBookmarks
- getBadges
- getDataPoints
- getFriends
- getImages
- getInfo
- getLeaderboardHistory
- getMeta
- getOwnedBadges
- getSession
- getSettings
- getStaff
- login
- logout
- queue
- reconnect
- refreshSession
- updateImages
- updateSettings
- uploadImages
- verifyConnection
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.bookmarkBadge({
badgeId: "bdg_123",
bookmark: true,
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountBookmarkBadge } from "@steamsets/client-ts/funcs/accountBookmarkBadge.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountBookmarkBadge(steamSets, {
badgeId: "bdg_123",
bookmark: true,
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1AccountBadgeBookmarkRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1BookmarkBadgeResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 403, 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.connect({
code: "123456",
provider: "discord",
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountConnect } from "@steamsets/client-ts/funcs/accountConnect.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountConnect(steamSets, {
code: "123456",
provider: "discord",
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1ConnectRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1ConnectionConnectResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.createDeveloperApp({
description: "Your App Description",
environment: "production",
generateKey: true,
name: "Your App",
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountCreateDeveloperApp } from "@steamsets/client-ts/funcs/accountCreateDeveloperApp.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountCreateDeveloperApp(steamSets, {
description: "Your App Description",
environment: "production",
generateKey: true,
name: "Your App",
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1DeveloperAppCreateRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SettingsDeveloperAppCreateResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.createSession({});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountCreateSession } from "@steamsets/client-ts/funcs/accountCreateSession.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountCreateSession(steamSets, {});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.AccountV1SessionCreateRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SessionCreateResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.deleteConnection({
connectionId: "123456",
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountDeleteConnection } from "@steamsets/client-ts/funcs/accountDeleteConnection.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountDeleteConnection(steamSets, {
connectionId: "123456",
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1DeleteConnectionRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1ConnectionDeleteConnectionResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.deleteImages({
imageIds: [
"<value>",
"<value>",
],
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountDeleteImages } from "@steamsets/client-ts/funcs/accountDeleteImages.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountDeleteImages(steamSets, {
imageIds: [
"<value>",
"<value>",
],
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1DeleteImagesRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1ImagesDeleteResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.emailSendVerification({});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountEmailSendVerification } from "@steamsets/client-ts/funcs/accountEmailSendVerification.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountEmailSendVerification(steamSets, {});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.AccountV1SettingsEmailSendVerificationRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SettingsEmailSendVerificationResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 404, 422, 429 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.emailSubscription({
v1EmailSubscriptionRequestBody: {
email: "[email protected]",
subscribed: true,
},
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountEmailSubscription } from "@steamsets/client-ts/funcs/accountEmailSubscription.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountEmailSubscription(steamSets, {
v1EmailSubscriptionRequestBody: {
email: "[email protected]",
subscribed: true,
},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.AccountV1SettingsEmailSubscribeRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SettingsEmailSubscribeResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 422, 429 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.emailVerify({
code: "123456",
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountEmailVerify } from "@steamsets/client-ts/funcs/accountEmailVerify.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountEmailVerify(steamSets, {
code: "123456",
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1VerifyEmailRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SettingsEmailVerifyResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 404, 422, 429 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getApps({});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetApps } from "@steamsets/client-ts/funcs/accountGetApps.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetApps(steamSets, {});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1AccountsAppsRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetAppsResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getBadgeBookmarks();
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetBadgeBookmarks } from "@steamsets/client-ts/funcs/accountGetBadgeBookmarks.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetBadgeBookmarks(steamSets);
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetBadgeBookmarksResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 403, 404 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getBadges({});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetBadges } from "@steamsets/client-ts/funcs/accountGetBadges.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetBadges(steamSets, {});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1BadgesRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetBadgesResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getDataPoints({});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetDataPoints } from "@steamsets/client-ts/funcs/accountGetDataPoints.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetDataPoints(steamSets, {});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.AccountSearch | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetDataPointsResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getFriends({});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetFriends } from "@steamsets/client-ts/funcs/accountGetFriends.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetFriends(steamSets, {});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.AccountSearch | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetFriendsResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getImages();
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetImages } from "@steamsets/client-ts/funcs/accountGetImages.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetImages(steamSets);
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1ImagesGetResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getInfo({});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetInfo } from "@steamsets/client-ts/funcs/accountGetInfo.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetInfo(steamSets, {});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.AccountSearch | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetInfoResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 403, 404, 422, 429 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getLeaderboardHistory({});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetLeaderboardHistory } from "@steamsets/client-ts/funcs/accountGetLeaderboardHistory.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetLeaderboardHistory(steamSets, {});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.AccountSearch | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetLeaderboardHistoryResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 403, 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getMeta({});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetMeta } from "@steamsets/client-ts/funcs/accountGetMeta.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetMeta(steamSets, {});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.AccountSearch | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetMetaResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getOwnedBadges();
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetOwnedBadges } from "@steamsets/client-ts/funcs/accountGetOwnedBadges.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetOwnedBadges(steamSets);
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetOwnedBadgesResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 403, 404 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getSession();
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetSession } from "@steamsets/client-ts/funcs/accountGetSession.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetSession(steamSets);
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SessionGetResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getSettings();
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetSettings } from "@steamsets/client-ts/funcs/accountGetSettings.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetSettings(steamSets);
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SettingsGetResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.getStaff();
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountGetStaff } from "@steamsets/client-ts/funcs/accountGetStaff.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountGetStaff(steamSets);
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1GetStaffResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 404, 429 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.login({
loginRequestBody: {
openidAssocHandle: "123456",
openidClaimedId: "76561198842603734",
openidIdentity: "https://steamsets.com/api/v1/openid/login",
openidMode: "checkid_setup",
openidNs: "http://specs.openid.net/auth/2.0",
openidOpEndpoint: "https://steamsets.com/api/v1/openid/login",
openidResponseNonce: "123456",
openidReturnTo: "https://example.com",
openidSig: "123456",
openidSigned: "123456",
},
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountLogin } from "@steamsets/client-ts/funcs/accountLogin.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountLogin(steamSets, {
loginRequestBody: {
openidAssocHandle: "123456",
openidClaimedId: "76561198842603734",
openidIdentity: "https://steamsets.com/api/v1/openid/login",
openidMode: "checkid_setup",
openidNs: "http://specs.openid.net/auth/2.0",
openidOpEndpoint: "https://steamsets.com/api/v1/openid/login",
openidResponseNonce: "123456",
openidReturnTo: "https://example.com",
openidSig: "123456",
openidSigned: "123456",
},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.AccountV1SessionLoginRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SessionLoginResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 422, 429 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.logout();
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountLogout } from "@steamsets/client-ts/funcs/accountLogout.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountLogout(steamSets);
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SessionLogoutResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 429 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.queue({
force: true,
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountQueue } from "@steamsets/client-ts/funcs/accountQueue.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountQueue(steamSets, {
force: true,
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1AccountQueueRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1QueueResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 422, 429 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.reconnect({
code: "123456",
connectionId: "123456",
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountReconnect } from "@steamsets/client-ts/funcs/accountReconnect.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountReconnect(steamSets, {
code: "123456",
connectionId: "123456",
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1ReconnectRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1ConnectionReconnectResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.refreshSession({
v1RefreshSessionRequestBody: {
refreshToken: "<value>",
},
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountRefreshSession } from "@steamsets/client-ts/funcs/accountRefreshSession.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountRefreshSession(steamSets, {
v1RefreshSessionRequestBody: {
refreshToken: "<value>",
},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.AccountV1SessionRefreshRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SessionRefreshResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.updateImages({
images: [
],
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountUpdateImages } from "@steamsets/client-ts/funcs/accountUpdateImages.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountUpdateImages(steamSets, {
images: [
],
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1UpdateImageRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1ImagesUpdateResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 404, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.updateSettings({
v1UpdateSettingsRequestBody: {
email: "[email protected]",
hidden: true,
language: "en",
vanity: "flo",
},
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountUpdateSettings } from "@steamsets/client-ts/funcs/accountUpdateSettings.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountUpdateSettings(steamSets, {
v1UpdateSettingsRequestBody: {
email: "[email protected]",
hidden: true,
language: "en",
vanity: "flo",
},
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.AccountV1SettingsUpdateRequest | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1SettingsUpdateResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 422, 429 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.uploadImages({
images: [
],
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountUploadImages } from "@steamsets/client-ts/funcs/accountUploadImages.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountUploadImages(steamSets, {
images: [
],
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1UploadImagesRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1ImagesUploadResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |
import { SteamSets } from "@steamsets/client-ts";
const steamSets = new SteamSets({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await steamSets.account.verifyConnection({
connectionId: "123456",
});
// Handle the result
console.log(result);
}
run();
The standalone function version of this method:
import { SteamSetsCore } from "@steamsets/client-ts/core.js";
import { accountVerifyConnection } from "@steamsets/client-ts/funcs/accountVerifyConnection.js";
// Use `SteamSetsCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const steamSets = new SteamSetsCore({
token: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const res = await accountVerifyConnection(steamSets, {
connectionId: "123456",
});
if (!res.ok) {
throw res.error;
}
const { value: result } = res;
// Handle the result
console.log(result);
}
run();
Parameter | Type | Required | Description |
---|---|---|---|
request |
components.V1VerifyConnectionRequestBody | ✔️ | The request object to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body , are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<operations.AccountV1ConnectionVerifyConnectionResponse>
Error Type | Status Code | Content Type |
---|---|---|
errors.ErrorModel | 400, 422 | application/problem+json |
errors.ErrorModel | 500 | application/problem+json |
errors.SDKError | 4XX, 5XX | */* |