chando/one-signal-rest-api

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

This package for backend easy user to access one-signal Server REST-API

dev-master 2020-08-25 10:34 UTC

This package is auto-updated.

Last update: 2021-09-25 12:53:43 UTC


README

This package for Backend easy user to access one-signal Server REST-API

Installation

composer require chando/one-signal-rest-api

Configuration

php artisan vendor:publish --tag=config

Migration

php artisan vendor:publish --tag=migrations

Usage

Send Notification

$res = OneSignal::setHeaderTitle('your-title')->setContent('your-content')->setData('your-data')->sendNotification();

Handle Error

if($res->hasError()){ dd($res->errors); }

Note

Don't forget to config APP_ID, API_KEY and AUTH_KEY on configuration file to get it work.