Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vagnercardosoweb/onesignal-notification
Classe básica para enviar, listar e visualizar notificações no onesignal.
https://github.com/vagnercardosoweb/onesignal-notification
notification onesignal onesignal-notifications onesignal-php
Last synced: 12 days ago
JSON representation
Classe básica para enviar, listar e visualizar notificações no onesignal.
- Host: GitHub
- URL: https://github.com/vagnercardosoweb/onesignal-notification
- Owner: vagnercardosoweb
- License: mit
- Created: 2017-12-19T15:51:06.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T16:50:11.000Z (about 7 years ago)
- Last Synced: 2024-11-13T09:45:38.169Z (2 months ago)
- Topics: notification, onesignal, onesignal-notifications, onesignal-php
- Language: PHP
- Homepage: https://www.vagnercardosoweb.com.br/
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PushNotification [ONESIGNAL](https://onesignal.com/)
Para utilização da classe é só seguir os passos abaixo.
- **appId:** Chave do aplicativo criado.
- **appKey:** Chave para a autenticação.````php
array('All'),
'url' => 'https://navegarte.com/',
'ios_attachments' => array("id" => 'https://cdn.pixabay.com/photo/2016/04/15/04/02/water-1330252_960_720.jpg'),
'headings' => array("en" => 'Testando pela class'),
'contents' => array("en" => 'Resposta pela class'),
'ios_badgeType' => 'Increase',
'ios_badgeCount' => 1,
'big_picture' => 'https://cdn.pixabay.com/photo/2016/04/15/04/02/water-1330252_960_720.jpg',
'isIos' => true,
'isAndroid' => true,
'android_sound' => 'default',
'ios_sound' => 'default'
);var_dump($push->sendNotification($params));
// Lista todas notificação
//var_dump($push->allNotifications(200, 0));// Vizualiza determinada notificação
//var_dump($push->viewNotification('notificationId'));
````