Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad session returned from API #3

Open
YPowTecH opened this issue Mar 18, 2019 · 1 comment
Open

Bad session returned from API #3

YPowTecH opened this issue Mar 18, 2019 · 1 comment

Comments

@YPowTecH
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant