norkunas / onesignal-php-api

OneSignal API for PHP
MIT License
234 stars 83 forks source link

getDevice(device_id) not working -- (getting Bad Request) #63

Closed seme1 closed 7 years ago

seme1 commented 7 years ago

The following does not work $device = $api->devices->getOne('device_id');

I'm getting the following msg when the above is run:

Client error: GET https://onesignal.com/api/v1/players/ resulted in a 400 Bad Request response: {"errors":["app_id not found. You may be missing a Content-Type: application/json header."]}

norkunas commented 7 years ago

Which version are you using?

norkunas commented 7 years ago

@seme1 fixed it