Code Monkey home page Code Monkey logo

battle.net-login's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm install
npm run build
npm run dev

Open http://localhost:3000/api/oauth/blizzard/login with your browser to see the result.

1. The basics

1.1. Gaining access to the API

To gain access to the API visit API Access and follow the instructions.

When creating your first client credentials use http://127.0.0.1:3000/api/oauth/blizzard/callback and check the option I do not have a service URL for this client if you still don’t know exactly how you are gonna use it (you can edit later).

πŸ‘‰ It can take up to 15 minutes for your new credentials start working.

1.2. Testing the API

If you want to play around the API and see what data is available, you can use your new credentials on the official API documentation 663.

2. .env values

CLIENT_ID= this value is given by blizzard in the step 1 CLIENT_SECRET= this value is given by blizzard in the step 1 AUTHORIZE_ENDPOINT='https://us.battle.net/oauth/authorize' //should be the same until blizzard change it TOKEN_ENDPOINT='https://us.battle.net/oauth/token' //should be the same until blizzard change it REDIRECT_URL='http://127.0.0.1:3000/api/oauth/blizzard/callback' //should be the same until you publish your project SCOPES='wow.profile' // modify as needed STATE= This value requires a random key I recomend use letters and numbers only

battle.net-login's People

Contributors

chilleno avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.