Comments (1)
Hello @vhanded,
This is probably related to your webserver cURL configuration. In short you must provide a local list of certicificates which will be checked when you are making a request with SSL to secure from "man in the middle" attacks. You can read about cacert.pem file here http://serverfault.com/questions/241046/what-is-the-cacert-pem-and-for-what-to-use-that.
I recommend you to download the cacert.pem file from http://curl.haxx.se/ca/cacert.pem and place it in your server and configure the path to that file and then the exception should disappear.
But if you can't modify PHP configuration then there is another option. Since this package uses Guzzle, you can create a Guzzle client before OneSignal and pass to constructor as a second parameter.
use GuzzleHttp\Client;
$guzzle = new Client([
'defaults' => [
'headers' => [
'Accept' => 'application/json',
],
'cert' => '/path/to/cacert.pem',
],
]));
$oneSignal = new \OneSignal\OneSignal(.., $guzzle);
Also about guzzle configuration you can read here: http://docs.guzzlephp.org/en/5.3/clients.html?highlight=cert#verify
from onesignal-php-api.
Related Issues (20)
- Delete OneSignal app via REST API HOT 1
- I have an error message on php 7.3 HOT 1
- Email sending not possible HOT 1
- How to send multiple different messages to different player_id, in a single send? HOT 1
- Add new "Edit tags with external user id" endpoint
- Add new "View Outcomes" endpoint
- Composer Install Error HOT 3
- Unknown Apns Error Response HOT 7
- channel_for_external_user_ids is not defined HOT 1
- PHP8 support HOT 3
- New feature - Delete device
- Add value "send_after" to allowed options for "delayed_option" property HOT 2
- your_auth_key - What is it?
- Readme configuration not working HOT 1
- Error on sending push notifications using segments HOT 1
- null value for basic_auth_key when adding app by api HOT 2
- New API v11 HOT 5
- cURL error 60: SSL certificate problem: certificate has expired HOT 3
- Question HOT 1
- Symfony 7 support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onesignal-php-api.