You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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('');
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.
The text was updated successfully, but these errors were encountered: