Advertisement
plumwd

BlizzAPI auth

Jan 3rd, 2024 (edited)
715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. import { BlizzAPI } from 'blizzapi';
  3.  
  4. const BnetApi = new BlizzAPI({
  5.   region: 'us',
  6.   clientId: '',
  7.   clientSecret: ''
  8. });
  9.  
  10. const data = await BnetApi.query("/profile/wow/character/area-52/aidalune/achievements?namespace=profile-us");
  11.  
  12. console.log('what i the data: ' + JSON.stringify(data) )
  13. });
  14.  
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement