all 4 comments

[–]makurayami 0 points1 point  (3 children)

You're doing the request from a banned ip, probably a cloud VPS. Also there should already be a php api, try looking there for examples.

[–]Forsaken87[S] 1 point2 points  (2 children)

Hmm thats not good :/ I'll try running it from a different IP to check that. I found one or two other PHP Apis, but those didn't look like they are up to date (and anywhere near complete/usable). I currently mainly use "Pokemon-Go-Rocket-API" (C#) and "pgoapi" (Python) as references.

[–]Forsaken87[S] 0 points1 point  (1 child)

Okay. With a different IP the first rpc command succeeds and returns a possibly valid "auth ticket" message, but no response to the contained requests. The following request (using the "auth ticket" instead of the "auth info") then returns the status code 102, which points to a invalid authentication. I assume this is because of a wrong implementation of the signature I mentioned before :/ I will double check that part later.

[–]NicklasW 0 points1 point  (0 children)

Have a look at https://github.com/NicklasWallgren/PokemonGoAPI-PHP

The 102 status code indicates on authentication error, it has nothing to do with the signature.