This microservice is a flexible and feature-rich javascript that allows you to fetch your battle.net acces token using the BlizzAPI in order to access to Blizzard Battle.net APIs.
This work is a part of a bigger project: RAIDDON. Raiddon is a project that fosters all the developpement and conceptual understandings acquired
throughout the ISIKA 10-month educational program.
The code will first fetch your access token then fetch multiple sets of data from Battle.net and finally store it into a MongoDB database named "raiddon-bnet-api"
The fetched data collections are:
Achievements categories,
Achivements,
Areas,
Armor,
Auction house index,
Alliance aucion house,
Horde auction house,
Character specialisations,
Class talents,
Consumables,
Containers,
Creature families,
Creature types,
Gems,
Item classes,
Mounts,
Playable classes,
Playable races,
Power types,
Professions,
Quest categories,
Quest types,
Realms,
Reputation factions,
Titles,
Weapons.
git clone https://github.com/Farah404/Raiddon
cd Raiddon
cd raiddon-bnet-data
npm install
Register a client app with Blizzard Battle.net Developer Portal. Note down client id and client secret.
Copy and rename the file .env.sample
to .env
. Edit it accordingly:
PORT='8080'
API_BATTLENET_KEY='your client app id'
API_BATTLENET_SECRET='your client app secret'
MONGO_DB_URI='The link that allows you to connect to your Mongo Atlas free cluster'
ACCESS_TOKEN = 'The access token retrieved using Raiddon-bnet-data'
npm start
nodemon start.js
Get your client ID and client secret here: BattleNet dev portal
Official blizzard documentation: Getting started with bnet API
Create your free cluster here: MongoDB Atlas
This project is not authored, affiliated or endorsed in any way by Blizzard Entertainment. Battle.net and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.