OneSignal / onesignal-php-api

The official OneSignal API client for PHP
Other
21 stars 10 forks source link

configuration for an external id users #22

Open YasiYaseen opened 8 months ago

YasiYaseen commented 8 months ago

How can we help?

i wanted to send to a specific user with an external id . so how to change this.

$config = Configuration::getDefaultConfiguration() ->setAppKeyToken(APP_KEY_TOKEN) ->setUserKeyToken(USER_KEY_TOKEN);

$apiInstance = new DefaultApi( new GuzzleHttp\Client(), $config );

now when i add $notification->setIncludeExternalUserIds(['EXTERNAL_ID']); It gives an error {"errors":["Please include a case-sensitive header of Authorization: Basic \u003cYOUR-REST-API-KEY-HERE\u003e or Bearer

Code of Conduct

LowKey1998 commented 1 week ago

was this resolved?

LowKey1998 commented 1 week ago

was this resolved?

LowKey1998 commented 1 week ago

was this resolved?