guildwars2-api-client
v1.0.6
Published
Typed data for every endpoint from https://wiki.guildwars2.com/wiki/API:2
Downloads
184
Maintainers
Readme
import { GW2ApiClient } from 'guildwars2-api-client';
const client = new GW2ApiClient({
apiKey: process.env.GW2_TOKEN,
acceptedStatusCodes: 'ONLY_200',
});
const displayData = async () => {
const dailyAchievements = await client.achievements.getDaily();
console.log(dailyAchievements);
};
displayData();