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

403 Forbidden #181

Open
zoltantajti opened this issue May 29, 2021 · 0 comments
Open

403 Forbidden #181

zoltantajti opened this issue May 29, 2021 · 0 comments

Comments

@zoltantajti
Copy link

hey.

I can starting using this api, and all time i get the [reasonPhrase:GuzzleHttp\Psr7\Response:private] => Forbidden [statusCode:GuzzleHttp\Psr7\Response:private] => 403 error.

How I can fix?

`<?php
require DIR . '/vendor/autoload.php';

use NicklasW\PkmGoApi\Authentication\AccessToken;
use NicklasW\PkmGoApi\Authentication\Config\Config;
use NicklasW\PkmGoApi\Authentication\Factory\Factory;
use NicklasW\PkmGoApi\Kernels\ApplicationKernel;

$config = new Config();
$config->setProvider(Factory::PROVIDER_GOOGLE);
$config->setUser('');
$config->setPassword('
');

$manager = Factory::create($config);

$application = new ApplicationKernel($manager);
$pokemonGoApi = $application->getPokemonGoApi();
$inventory = $pokemonGoApi->getInventory();
$playerStats = $inventory->getStats();

?>`

Thank you.

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

No branches or pull requests

1 participant