oauth2-bnet
oauth2-bnet copied to clipboard
A Battle.net provider for league/oauth2-client
All in the title. Thanks.
Fix typo.
Shouldn't the end point of this be https://eu.api.battle.net/account/user
Well, after authorization my app say Grant "League\OAuth2\Client\Grant\AuthorizatonCode" must extend AbstractGrant. Installed via composer.
Scenario: 1. Create account in US region and login 2. Set $this->region to 'eu' 3. Try to retrive user data via SC2Provider It will response 404 "Sc2 Profile Not Found"...
There is a typo in the example code ; `$token = $this->provider->getAccessToken("authorizaton_code", [` should be `$token = $this->provider->getAccessToken("authorization_code", [` (the `i` of `authorization` is missing)