Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get user data #28

Open
95jonpet opened this issue Jun 30, 2017 · 2 comments
Open

Unable to get user data #28

95jonpet opened this issue Jun 30, 2017 · 2 comments

Comments

@95jonpet
Copy link

I am trying to get user data, mainly the battletag for a single user through OAuth. I am, however, getting an error 403 from Guzzle.

My code is minimal:

$client = new BlizzardClient(config('blizzard.key'), config('blizzard.secret'), config('blizzard.region'), config('blizzard.locale'));

$auth = new CommunityOAuth($client);
$user = $auth->getUser();

return $user;

When using the tool at https://dev.battle.net/io-docs, an extra "authorization code" is needed to generate the access token, but I cannot find any reference to it here. The resulting link, here looks similar to the one provided by Blizzard, but it always results in the 403 error {"code":403, "type":"Forbidden", "detail":"Not Authorized"}.

@LogansUA
Copy link
Owner

LogansUA commented Jul 1, 2017

@95jonpet Hi. Okay, I'll check it, as soon as i get to the computer

@LogansUA LogansUA self-assigned this Jul 1, 2017
@LogansUA
Copy link
Owner

@95jonpet Hey, sorry for long response, I'm currently working on updating the library, once I'd finish this - the endpoint should work as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants