norkunas / onesignal-php-api

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

$api->devices->csvExport(); throws exception #54

Closed svycka closed 7 years ago

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

app_id should be in query params not body. I guess this is same for #44 even if this worked before going against documentation is not a good thing.

norkunas commented 7 years ago

Should be good now

svycka commented 7 years ago

not tested but I guess should work