NicklasWallgren / PokemonGoAPI-PHP

Pokemon Go API PHP library
BSD 2-Clause "Simplified" License
130 stars 51 forks source link

User Profile Details #170

Closed rohit1290 closed 7 years ago

rohit1290 commented 7 years ago

I was looking at the examples, and I want to know one thing. How can I get user profile details like username, team name, level etc.

It will be great if you can direct me to an appropriate document.

NicklasWallgren commented 7 years ago

Take a look at the RetrievePlayerProfileExample and RetrievePlayerStatsExample.

The library is fairly self-documented, but a documentation would have been nice. Any takers? ;)

rohit1290 commented 7 years ago

Hi again, I was trying to test the api. I downloaded the source. Executed composer install command.

Now when I was studying the codes, the first line says require DIR . '/../vendor/autoload.php' but i am not able to find the autoload.php file in the repo.

kindly help.

xmillies commented 7 years ago

1° git clone https://github.com/NicklasWallgren/PokemonGoAPI-PHP.git (or unzip the downloaded zip file)

2° run the command in the root folder of the project (where the file composer.json is present) : composer install

composer will create the autoload file.

3° copy one sample and adapt it : correct the line with autoload.php : the folder put your identity inside.

4° run the script

if you don't have composer on your computer : https://getcomposer.org/download/

rohit1290 commented 7 years ago

Thank You! Probably there was an internet problem. Composer install was not creating the vendor folder.

Now everything is in place.