-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c80ae79
commit c236c6b
Showing
10 changed files
with
120 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"steamwebapi-wrapper": minor | ||
--- | ||
|
||
trade service completed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import SteamWebApi from "../dist/index.cjs"; | ||
|
||
function credentials() { | ||
const swa = new SteamWebApi({ apiKey: "your_api_key" }); | ||
|
||
// Set new Api Key | ||
swa.setApiKey("new_api_key"); | ||
|
||
// Get Api Key | ||
swa.getApiKey(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import SteamWebApi from "../dist/index.cjs"; | ||
|
||
function trade() { | ||
const swa = new SteamWebApi({ apiKey: "your_api_key" }); | ||
|
||
// Create a new trade offer | ||
swa.trade.createOffer({ | ||
/* create params https://www.steamwebapi.com/api/list */ | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
export type CreateParamsType = { | ||
steamloginsecure: boolean; | ||
partneritemassetids: string; | ||
myitemsassetids: string; | ||
tradelink: string; | ||
partnersteamid: string; | ||
message: string; | ||
game: string; | ||
}; | ||
|
||
export type StatusParamsType = { | ||
steamcommunityapikey: string; | ||
partnersteamid?: string; | ||
assetid?: string; | ||
}; | ||
|
||
export type CancelParamsType = { | ||
steamloginsecure: string; | ||
tradeofferid: string; | ||
}; | ||
|
||
export type DeclineParamsType = { | ||
steamloginsecure: string; | ||
tradeofferid: string; | ||
}; | ||
|
||
export type AcceptParamsType = { | ||
steamloginsecure: string; | ||
tradeofferid: string; | ||
partnersteamid: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import axios, { AxiosInstance } from "axios"; | ||
|
||
export const client: AxiosInstance = axios.create({ | ||
baseURL: "https://www.steamwebapi.com/steam/api", | ||
baseURL: "https://www.steamwebapi.com", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters