Skip to content

403 Forbidden #181

@zoltantajti

Description

@zoltantajti

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions