1.0.6 • Published 2 years ago

guildwars2-api-client v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago
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();