guildwars2-ts v1.3.0
Typescript API Wrapper for GuildWars 2
This project is a third-party package, and is strictly not affiliated with GuildWars2, ArenaNet, or NCSoft.
When used, no data is saved by, or sent to the developers, including but not limited to the logs, api tokens, or any objects returned by the endpoints.
Available Endpoints (GuildWars 2)
Full support of all endpoints listed in the API:2 Wiki page
Request Example
import { GW2Api, ApiLanguage, setLogLevel, LogLevel } from "guildwars2-ts";
const api: GW2Api = new GW2Api({
// Token is not required for all of the endpoints
token: "YOUR-TOKEN-HERE",
language: ApiLanguage.English,
rateLimitRetry: true
});
// Set to error by default, so you can set it to info for extra verbosity
setLogLevel(LogLevel.info);
(async () => {
// Obtain names of all characters on the account
await api.account.get().then(console.log);
// Obtain details about each of them
await api.characters.get().then((characters) => {
characters.forEach(async (character) => {
await api.characters.getCore(character).then(console.log);
});
});
})();
Contibutions
If you find any kinds of errors in the program code, or wish to add/update any of the functionality provided by this project, please feel free to open a pull request against the development branch.
In case of runtime errors, request validation error logs are extremely helpful, so please include them in the request.
5 months ago
7 months ago
5 months ago
10 months ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago