Skip to content

Commit

Permalink
Documentation Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince Ali Khan committed Sep 26, 2016
1 parent 302da5c commit 7f5db5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can easily send a message to all registered users with the command
OneSignal::sendNotificationToAll("Some Message");
OneSignal::sendNotificationToAll("Some Message", $url);
OneSignal::sendNotificationToAll("Some Message", $url, $data);
OneSignal::sendNotificationToAll("Some Message", $url, $data,$buttons);
OneSignal::sendNotificationToAll("Some Message", $url, $data, $buttons);

`$url` , `$data` and `$buttons` fields are exceptional. If you provide a `$url` parameter, users will be redirecting to that url.

Expand All @@ -66,7 +66,7 @@ After storing a user's tokens in a table, you can simply send a message with
OneSignal::sendNotificationToUser("Some Message", $userId);
OneSignal::sendNotificationToUser("Some Message", $userId, $url);
OneSignal::sendNotificationToUser("Some Message", $userId, $url, $data);
OneSignal::sendNotificationToUser("Some Message", $url, $data, $buttons);
OneSignal::sendNotificationToUser("Some Message", $userId, $url, $data, $buttons);

`$userId` is the user's unique id where he/she is registered for notifications. Read https://documentation.onesignal.com/docs/website-sdk-api#getUserId for additional details.
`$url` , `$data` and `$buttons` fields are exceptional. If you provide a `$url` parameter, users will be redirecting to that url.
Expand All @@ -79,7 +79,7 @@ You can simply send a notification to a specific segment with
OneSignal::sendNotificationToSegment("Some Message", $segment);
OneSignal::sendNotificationToSegment("Some Message", $segment, $url);
OneSignal::sendNotificationToSegment("Some Message", $segment, $url, $data);
OneSignal::sendNotificationToSegment("Some Message", $url, $data, $buttons);
OneSignal::sendNotificationToSegment("Some Message", $segment, $url, $data, $buttons);

`$url` , `$data` and `$buttons` fields are exceptional. If you provide a `$url` parameter, users will be redirecting to that url.

Expand Down

0 comments on commit 7f5db5e

Please sign in to comment.