onesignal-php-api icon indicating copy to clipboard operation
onesignal-php-api copied to clipboard

configuration for an external id users

Open YasiYaseen opened this issue 1 year ago • 3 comments

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

  • [X] I agree to follow this project's Code of Conduct

YasiYaseen avatar Jan 30 '24 01:01 YasiYaseen

was this resolved?

LowKey1998 avatar Sep 26 '24 13:09 LowKey1998

was this resolved?

LowKey1998 avatar Sep 26 '24 13:09 LowKey1998

was this resolved?

LowKey1998 avatar Sep 26 '24 14:09 LowKey1998