teamreflex / PaladinsPHP

A PHP Library for interacting with Paladins' API, a game by HiRez.
GNU Lesser General Public License v3.0
8 stars 1 forks source link

Bad session returned from API #3

Open YPowTecH opened 5 years ago

YPowTecH commented 5 years ago

Would you mind helping me out a little.

Tried to use your example to launch a test and doesn't seem to setup the path correctly or return any data.

` //first of all this needs to have a third param $api = new API('DevId','AuthKey', 'http://api.paladins.com/paladinsapi.svc/');

$api->preferredFormat('array');

$api->preferredLanguage('es');

//$playerData = $api->request('getplayer','PowTecH'); $playername = array(); array_push($playername, "PowTecH"); $playerData = $api->getplayer($playername); `

Gives me this error Bad session returned from API: "" via request: http://api.paladins.com/paladinsapi.svc/createsessionjson/DevId/53e892964b1e9cc38d059db0b5984c8a/20190318082801 Which has 2/4 url params when trying to get something for paladins and 3/4 when trying to get something for smite. In both cases it leaves off the player name

Thanks

YPowTecH commented 5 years ago

Spoke too soon - just had to manually create the session before I could make any other requests