NicklasWallgren / PokemonGoAPI-PHP

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

With 0.37 version, this API won't work anymore #142

Closed paoloalby closed 8 years ago

paoloalby commented 8 years ago

@DrDelay in the last days, the login using Google Auth Token doesn't work anymore. For 2 months everything ok, but since saturday it seems something changed. What changed? If files are always the same, I supposed that Niantic changed something. Maybe the url to request the token is different now. Can you check, please?

PS: PTC login still works, of course.

nickpoulos commented 8 years ago

I have a test dev account with a buddy who HASNT collected candy but is about to...level 5 buddy is pikachu if that helps anyone

On Mon, Oct 3, 2016 at 3:26 PM, NicklasWallgren notifications@github.com wrote:

@Ni42 https://github.com/Ni42 Great news, I'll dig into the Alpha release tomorrow :)

@DrDelay https://github.com/DrDelay What type of issues have you encountered?

@voxx https://github.com/voxx Bring me that account already ;) You can reach me at nicklas.wallgren@gmail.com.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251201538, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6VLGE6FOunqm0Uu4XAo2w4YFB49uks5qwVb3gaJpZM4J7VUf .

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

DrDelay commented 8 years ago

I couldn't get past make of the plugin. I don't remember the error and already "rage rm rf"-ed everything. I first tried with a binary release of protobuf, then with the 2x version from the debian repos and also compiled the whole thing myself (what took like ages), but the make of the plugin always failed. I remember finally resolving some error regarding /usr/bin/ld -lprotoc but then just another occured.

nickpoulos commented 8 years ago

I got the original protos to compile for PHP when the python guys first released their stuff. I am sure they are very old, but maybe we can learn something idk. Or I can try to regenerate when we make changes for this new unknown33.

/RequestEnvelope/ and /ResponseEnvelope/ have the Pokemon php classes.

On Mon, Oct 3, 2016 at 4:23 PM, DrDelay notifications@github.com wrote:

I couldn't get past make of the plugin. I don't remember the error and already "rage rm rf"-ed everything. I first tried with a binary release of protobuf, then with the 2x version from the debian repos and also compiled the whole thing myself (what took like ages), but the make of the plugin always failed. I remember finally resolving some error regarding /usr/bin/ld -lprotoc but then just another occured.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251215941, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6Z6N5JVloyH49423sHNPv1n1K2w5ks5qwWRegaJpZM4J7VUf .

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

nickpoulos commented 8 years ago

is there a routes file for this app or are you running scripts with php command line? i just got everything pulled down and have some time to work on shit....we need a chat room

On Mon, Oct 3, 2016 at 4:40 PM, Nick Poulos nick@littlethings.com wrote:

I got the original protos to compile for PHP when the python guys first released their stuff. I am sure they are very old, but maybe we can learn something idk. Or I can try to regenerate when we make changes for this new unknown33.

/RequestEnvelope/ and /ResponseEnvelope/ have the Pokemon php classes.

On Mon, Oct 3, 2016 at 4:23 PM, DrDelay notifications@github.com wrote:

I couldn't get past make of the plugin. I don't remember the error and already "rage rm rf"-ed everything. I first tried with a binary release of protobuf, then with the 2x version from the debian repos and also compiled the whole thing myself (what took like ages), but the make of the plugin always failed. I remember finally resolving some error regarding /usr/bin/ld -lprotoc but then just another occured.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251215941, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6Z6N5JVloyH49423sHNPv1n1K2w5ks5qwWRegaJpZM4J7VUf .

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

nickpoulos commented 8 years ago

Parse error: syntax error, unexpected 'ECHO' (T_ECHO), expecting identifier (T_STRING) in /Users/nick/Code/pokemon/pokemongoapi-php/PokemonGoAPI-PHP/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Networking/Requests/RequestType.php on line 80

We named a constant ECHO?? Or are these generated by protobuf haha

On Mon, Oct 3, 2016 at 9:10 PM, Nick Poulos nick@littlethings.com wrote:

is there a routes file for this app or are you running scripts with php command line? i just got everything pulled down and have some time to work on shit....we need a chat room

On Mon, Oct 3, 2016 at 4:40 PM, Nick Poulos nick@littlethings.com wrote:

I got the original protos to compile for PHP when the python guys first released their stuff. I am sure they are very old, but maybe we can learn something idk. Or I can try to regenerate when we make changes for this new unknown33.

/RequestEnvelope/ and /ResponseEnvelope/ have the Pokemon php classes.

On Mon, Oct 3, 2016 at 4:23 PM, DrDelay notifications@github.com wrote:

I couldn't get past make of the plugin. I don't remember the error and already "rage rm rf"-ed everything. I first tried with a binary release of protobuf, then with the 2x version from the debian repos and also compiled the whole thing myself (what took like ages), but the make of the plugin always failed. I remember finally resolving some error regarding /usr/bin/ld -lprotoc but then just another occured.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251215941, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6Z6N5JVloyH49423sHNPv1n1K2w5ks5qwWRegaJpZM4J7VUf .

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

DrDelay commented 8 years ago

These files are generated from the protos, but I never encountered that error with PHP7. What version are you using?

This is only a library, there is no entry point (except the examples). I always run my tests via commandline.

nickpoulos commented 8 years ago

Yea I realized there was no entry, just double checking. It just looks so Laravel like :-P

it's weird bc I can run the composer tests command and I get all 11 assertions successful. But then after trying to run the script examples/GUIExample...I was getting a bunch of weird errors like the ECHO one and then another when I renamed const ECHO to a regular name. You said you are running PHP7? I should upgrade my VM and see if that does it.

On Tue, Oct 4, 2016, 2:40 AM DrDelay notifications@github.com wrote:

These files are generated from the protos, but I never encountered that with PHP7.

This is only a library, there is no entry point (except the examples). I always run my tests via commandline.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251306110, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6ef0nCs5RZ0eCYedK_Kr0W8DsCkQks5qwfT2gaJpZM4J7VUf .

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

DrDelay commented 8 years ago

These 11 assertions do not cover very much, I added them in #131 as a basic PHPUnit/test setup because there was none at all. Adding complete test coverage afterwards is of course difficult.

"As of PHP 7.0.0 these keywords are allowed as as property, constant, and method names of classes,..." [http://php.net/manual/en/reserved.keywords.php]

Since PHP 5.6 is still in its lifecycle (I think), we should probably add a notice about the min-version in the Readme / composer.json requires directive.

NicklasWallgren commented 8 years ago

Maybe this could solve some of the issues. https://github.com/NicklasWallgren/pogoprotos-php/issues/7

I have to manually patch the reserved keywords https://github.com/NicklasWallgren/pogoprotos-php/commit/9844db08e04b338e657c29e65bf49c86e75d6051

nickpoulos commented 8 years ago

Ah thanks dude I didn't even realize, alright I'll upgrade php real quick and see how far I get.

On Tue, Oct 4, 2016, 8:28 AM DrDelay notifications@github.com wrote:

These 11 assertions do not cover very much, I added them in #131 https://github.com/NicklasWallgren/PokemonGoAPI-PHP/pull/131 as a basic PHPUnit setup because there was none at all. Adding complete test coverage afterwards is of course difficult.

"As of PHP 7.0.0 these keywords are allowed as as property, constant, and method names of classes,..." [http://php.net/manual/en/ reserved.keywords.php]

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251373941, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6ZtndgQOIKta2mp0yjvtWOrchOxwks5qwkZ6gaJpZM4J7VUf .

nickpoulos commented 8 years ago

@NicklasWallgren I wouldnt bother trying to patch the reserved keywords, we should be using PHP 7, the benefits of 7 are immense, especially speed. I saw a talk at Laracon 2016 in July by Zeev Suraski himself and he just went on for an hour about how much better PHP 7 is. Great talk.

DrDelay commented 8 years ago

The solution proposed in https://github.com/NicklasWallgren/pogoprotos-php/issues/7 seems to "fix" (work around) this problem, although I'm not sure what is the best way to implement it.

I added this to my PokemonData.php:

case 33: // optional float UK33 = 33
  if ($wire !== 5) {
    throw new \Exception("Incorrect wire format for field $field, expected: 5 got: $wire");
  }
  $tmp = Protobuf::read_float($fp, $limit);
  break;

But the next time we recompile them it will be discarded if we just add it to the compiled file.

NicklasWallgren commented 8 years ago

The pogosprotos-php repository has been updated.

https://github.com/NicklasWallgren/pogoprotos-php/commit/4285377a80b4a20c698489a9614f3d6cc4746d82

Raphaelbm commented 8 years ago

I have a 403 error now with this update. I have to change something ?

voxx commented 8 years ago

@NicklasWallgren

NicklasWallgren/pogoprotos-php@4285377

Seems to have fixed it for me too!

EDIT:

Hmm, spoke too soon.

The fix works in with the "test" account I provided @DrDelay and @NicklasWallgren that was freshly created, buddy added, and 1 candy earned.

However an alternate older account I have is now displaying a different error when I attempt to pull inventory.

Fatal error: Uncaught Exception: skip((2) length-delimited): Error seeking in /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php:851 Stack trace: #0 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Inventory/InventoryDelta.php(64): Protobuf::skip_field(Resource id #148, 0) #1 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php(84): POGOProtos\Inventory\InventoryDelta->read(Resource id #148, 11329) #2 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Inventory/InventoryDelta.php(23): ProtobufMessage->__construct(Resource id #148, 11329) #3 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Networking/Responses/GetInventoryResponse.php(49): POGOProtos\Inventory\InventoryDelta->__construct(Resource id #148, 11329) #4 /private/var/www/vhosts/pokemongoapi-php/wwwroot/src/Requests/Get in /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php on line 851

The primary obvious difference to me between these two accounts is "buddy test" has 1 buddy candy earned and under single digit km's walked on buddy, and "older buddy" has a substantially larger amount of candies earned and higher km's walked, (double/triple digits). Not sure if this is related, but i'll see if i can test any other accounts to try and isolate.

voxx commented 8 years ago

@NicklasWallgren @Vankxr @DrDelay

src/POGOProtos/Data/PokemonData.php Case 32 appears to be missing break; ?

Line 345

After adding break to that case clause i'm able to log in with the "older buddy".

Is this same issue for you guys?

Vlakon commented 8 years ago

After pulling the new code, and adding the missing break, i dont get errors anymore (on any account).

I get the content from inventory, pokemon etc... but i do not get the information about the trainer.

All i get from the getProfile() is default values.

voxx commented 8 years ago

Tested another "older account" and got yet another error. This time Case 8:

Fatal error: Uncaught Exception: Incorrect wire format for field 8, expected: 0 got: 2 in /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PokemonData.php:127 Stack trace: #0 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php(84): POGOProtos\Data\PokemonData->read(Resource id #148, 101) #1 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PokemonData.php(51): ProtobufMessage->__construct(Resource id #148, 101) #2 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Inventory/InventoryItemData.php(48): POGOProtos\Data\PokemonData->__construct(Resource id #148, 101) #3 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php(84): POGOProtos\Inventory\InventoryItemData->read(Resource id #148, 0) #4 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/s in /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PokemonData.php on line 127

Vlakon commented 8 years ago

@voxx The error is because of the missing break;

voxx commented 8 years ago

@Vlakon

I added the missing break already, "test account" and "older buddy" now work, but "older buddy 2" throws the above error on case 8.

Vlakon commented 8 years ago

On the accounts that work; do you get information from getProfile() on them?

voxx commented 8 years ago

Haven't tested profile, as I do not use profile functionality. I simply use the API for pulling IV's and strip out other logic that doesnt pertain to my needs so that hasnt been part of my test cases.

Vlakon commented 8 years ago

I use the api to pull pokemon and insert into sql. For this i am using trainer name as unique identifier. Is there any other unique id i can use? All i need for the app to work is a unique id! :/

voxx commented 8 years ago

@Vlakon

How about $config->getUser();

aka, the email address you're using to log in with? That should be fairly unique xD

Vlakon commented 8 years ago

That's unique, but not set when authing via token.

I found that the only data i actually get from getProfile() is creationTime, and that should be unique enough for the purpose.

DrDelay commented 8 years ago

@voxx #: Field 8 is string deployed_fort_id, and I found something strange that could very well be the problem. Take a look at all the string fields in PokemonData.php's read. Every one of them except field 8 has if($wire !== 2), field 8 has if($wire !== 0). It even says in your error message expected: 0 got: 2. Can you change it here (to 2) and try again?

Considering this issue is already 75 comments long, could you maybe open another one for the getProfile-problem, @Vlakon? :laughing:

DrDelay commented 8 years ago

Good catch with the missing break @voxx, this should be fixed with https://github.com/NicklasWallgren/pogoprotos-php/pull/8.

voxx commented 8 years ago

Attempted to change switch case 8 to 2 instead of zero, which just kicks the can down the road a little further and presents me with another error.

Fatal error: Uncaught Exception: Incorrect wire format for field 12, expected: 1 got: 6 in /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PokemonData.php:165 Stack trace: #0 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php(84): POGOProtos\Data\PokemonData->read(Resource id #148, 99) #1 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PokemonData.php(51): ProtobufMessage->__construct(Resource id #148, 99) #2 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Inventory/InventoryItemData.php(48): POGOProtos\Data\PokemonData->__construct(Resource id #148, 99) #3 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php(84): POGOProtos\Inventory\InventoryItemData->read(Resource id #148, 0) #4 /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src in /private/var/www/vhosts/pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PokemonData.php on line 165

DrDelay commented 8 years ago

According to the docs there is no wire type 6 :laughing:.

Can you try to dump and upload the raw response again, so others can test around with it?

nickpoulos commented 8 years ago

Uh...isn't there only up to 5 wire types

On Oct 5, 2016 5:09 PM, "voxx" notifications@github.com wrote:

Attempted to change switch case 8 to 2 instead of zero, which just kicks the can down the road a little further and presents me with another error.

Fatal error: Uncaught Exception: Incorrect wire format for field 12, expected: 1 got: 6 in /private/var/www/vhosts/pokemongoapi-php/wwwroot/ vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PokemonData.php:165 Stack trace: #0 /private/var/www/vhosts/pokemongoapi-php/wwwroot/ vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php(84): POGOProtos\Data\PokemonData->read(Resource id #148, 99) #1 /private/var/www/vhosts/pokemongoapi-php/wwwroot/ vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PokemonData.php(51): ProtobufMessage->construct(Resource id #148, 99) #2 /private/var/www/vhosts/pokemongoapi-php/wwwroot/ vendor/nicklasw/pogoprotos-php/src/POGOProtos/Inventory/InventoryItemData.php(48): POGOProtos\Data\PokemonData->construct(Resource id #148, 99) #3 /private/var/www/vhosts/pokemongoapi-php/wwwroot/ vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php(84): POGOProtos\Inventory\InventoryItemData->read(Resource id #148, 0) #4 /private/var/www/vhosts/pokemongoapi-php/wwwroot/ vendor/nicklasw/pogoprotos-php/src in /private/var/www/vhosts/ pokemongoapi-php/wwwroot/vendor/nicklasw/pogoprotos- php/src/POGOProtos/Data/PokemonData.php on line 165

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251800252, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6YDjKQDop-vgwc05xLBlrQS7KBB7ks5qxBHygaJpZM4J7VUf .

nickpoulos commented 8 years ago

Unless it is referring to the 32bit wire type, since they are 0 based

On Oct 5, 2016 5:36 PM, "DrDelay" notifications@github.com wrote:

According to the docs https://developers.google.com/protocol-buffers/docs/encoding there is no wire type 6 😆.

Can you try to dump and upload the raw response again, so others can test around with it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251806841, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6ZPtUPAyuSDsjK0b4_sjnHknjYtAks5qxBhbgaJpZM4J7VUf .

nickpoulos commented 8 years ago

Oh duh just saw your msg DrDelay...yes you are correct no wire type with an index of 6...I'm curious to see the raw request/response also

On Oct 5, 2016 6:23 PM, "Nick Poulos" nick@littlethings.com wrote:

Unless it is referring to the 32bit wire type, since they are 0 based

On Oct 5, 2016 5:36 PM, "DrDelay" notifications@github.com wrote:

According to the docs https://developers.google.com/protocol-buffers/docs/encoding there is no wire type 6 😆.

Can you try to dump and upload the raw response again, so others can test around with it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251806841, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6ZPtUPAyuSDsjK0b4_sjnHknjYtAks5qxBhbgaJpZM4J7VUf .

voxx commented 8 years ago

I can attempt to dump raw response again on the account(s) that are having the case 8 failure, but I was not able to successfully do so previously. (was only getting auth portion of response, even after attempting to set the body response to variable like @DrDelay had instructed me to do so via email)

I do know one obvious difference between the accounts that are working and the accounts that are not.

Working accounts "test account" and "older buddy" don't actually have any mons deployed to gym. Erroring accounts "older account 2" and "older account 3" both have mons deployed to gyms currently.

If i get some spare time here shortly i can try dropping "test account" mon into a local gym and retesting to confirm that this is what's breaking it, but I have a sneaking suspicion that this is probably the case and would make sense with the error that's being thrown as that's exactly what case 8 is related to.

-VoxX

voxx commented 8 years ago

Started up a google hangouts if ya'll want to hop in for discussion.

-> https://hangouts.google.com/hangouts/_/bigblackboxx.com/uk33

voxx commented 8 years ago

Inventory raw dump for "older buddy 3" -> pogodumpU8IH4U.txt

Decoded inventory dump for "older buddy 3" -> pogodumpU8IH4U-decoded.txt

I appolgize for the size of the dump here, this inventory has many more pokemons than the previous test accounts.

I havent dug through the decoded response much yet, but hopefully we can compare to "test account" and see what may be different.

-VoxX

voxx commented 8 years ago

This looks like a mon in a gym.

3 { 1: 1475649960638 3 { 1 { 1: 0xdb2b179dd8b50af2 2: 103 3: 1715 4: 124 5: 124 6: 235 7: 59 8: "a5fda12026b54012a23677abf73b27fd.16" 15: 0x400afca7 16: 0x431f91c7 17: 13 18: 8 19: 13 20: 0x3f1cb657 21: 3 22: 9285541722824114176 23: 25 26: 1472025060925 30 { 8: 0x67676578 14: 0x2b726f74 } } } }

roemer2201 commented 8 years ago

Keep in mind that Niantic changed something on the server side yesterday evening (European time). Map scanners are currently not or only barely working.

DrDelay commented 8 years ago

I was able to successfully decode pogodumpU8IH4U.txt with the changes in https://github.com/NicklasWallgren/pogoprotos-php/pull/9.

I think the strange wire format 6 error was just a side effect of not reading the string properly. Read the linked PR for what I mean.

nickpoulos commented 8 years ago

I cant join that google hangout for some reason, always wants to do a video call instead of a regular google IM.

Sooo I made a slack account for us. E-mail me direct @ nickpoulos.ny@gmail.com with what email address you want to join with. Or you can try

https://pokemongoapi-php.slack.com/

Then together we can decide on channel names and I can make others admins and all that crap. I think this will help us work together big time.

On Wed, Oct 5, 2016 at 7:06 PM, voxx notifications@github.com wrote:

This looks like a mon in a gym.

3 { 1: 1475649960638 3 { 1 { 1: 0xdb2b179dd8b50af2 2: 103 3: 1715 4: 124 5: 124 6: 235 7: 59 8: "a5fda12026b54012a23677abf73b27fd.16" 15: 0x400afca7 16: 0x431f91c7 17: 13 18: 8 19: 13 20: 0x3f1cb657 21: 3 22: 9285541722824114176 23: 25 26: 1472025060925 30 { 8: 0x67676578 14: 0x2b726f74 } } } }

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-251825027, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6bJzcsIuo_UiIsgLpZA3OqxFbnfwks5qxC17gaJpZM4J7VUf .

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

DrDelay commented 8 years ago

Since field 8 should also be fixed now (composer update), could everybody make their tests once again? Nearly a month after the issue was opened it would be nice to put a :white_check_mark: on it :laughing:.

DrDelay commented 8 years ago

@Vlakon your problem should be resolved, see #150.

Just writing it because I thought you started it, but you are not @andrelicoski :laughing:.

nickpoulos commented 8 years ago

I just composer updated and git pull'd everything. Are we saying we should be able to get profile info, pokemon list, inventory with these latest fixes?

Crap I think I still have to upgrade my local box to PHP7

DrDelay commented 8 years ago

I think @NicklasWallgren has renamed the constants that were causing trouble, so you probably don't necessarily need PHP7 (it is faster ofc). What you do need is a 64bit version of PHP.

nickpoulos commented 8 years ago

Oh OK good so then PHP 6.0 will work then ;)

On Oct 6, 2016 5:13 PM, "DrDelay" notifications@github.com wrote:

I think @NicklasWallgren https://github.com/NicklasWallgren has renamed the constants that were causing trouble, so you probably don't necessarily need PHP7 (it is faster ofc). What you do need is a 64bit version of PHP.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-252090554, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6ROx9p9yyGtLbVrY7yh5c0eBnZxGks5qxWSNgaJpZM4J7VUf .

nickpoulos commented 8 years ago

made my vagrant box php7, pulled latest API repo, threw in my test account - account has a buddy who has gotten candy already, and i am able to run examples/GUI_BestCpPokemonDetails.php - 100% success

good work everyone!

paoloalby commented 8 years ago

After composer update, if I try to login with one of my account, I get this error:

Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self signed certificate in certificate chain (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in C:\wamp64\www\pogoinformer\PokemonGoAPI-PHP\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187

DrDelay commented 8 years ago

I just tried (also composer updated) and could still request my profile. See my fix proposal here: https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/151#issuecomment-252249498

nickpoulos commented 8 years ago

If you are working locally you may need to update your SSL cert and/or configure it properly.

On Fri, Oct 7, 2016 at 9:21 AM, DrDelay notifications@github.com wrote:

I just tried (also composer updated) and could still request my profile. See my fix proposal here: #151 (comment) https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/151#issuecomment-252249498

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-252250320, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6Szi5fy1He20EE0qvC9DROSRg8WPks5qxkd1gaJpZM4J7VUf .

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

nickpoulos commented 8 years ago

Also can somebody add our slack sign up page to the Git readme so it shows at the top of the page?

On Fri, Oct 7, 2016 at 9:48 AM, Nick Poulos nick@littlethings.com wrote:

If you are working locally you may need to update your SSL cert and/or configure it properly.

On Fri, Oct 7, 2016 at 9:21 AM, DrDelay notifications@github.com wrote:

I just tried (also composer updated) and could still request my profile. See my fix proposal here: #151 (comment) https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/151#issuecomment-252249498

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/142#issuecomment-252250320, or mute the thread https://github.com/notifications/unsubscribe-auth/ADxq6Szi5fy1He20EE0qvC9DROSRg8WPks5qxkd1gaJpZM4J7VUf .

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

Nick Poulos Lead PHP Engineer Check Out LittleThings.com http://littlethings.com/

NicklasWallgren commented 8 years ago

@paoloalby How about closing this issue? :)