diff --git a/src/OneSignalClient.php b/src/OneSignalClient.php index 4d600c6..198b6a1 100644 --- a/src/OneSignalClient.php +++ b/src/OneSignalClient.php @@ -403,7 +403,7 @@ public function getNotification($notification_id, $app_id = null) { return $this->get(self::ENDPOINT_NOTIFICATIONS . '/'.$notification_id . '?app_id='.$app_id); } - public function getNotifications($app_id = null, $limit = null, $offset = null) { + public function getNotifications($app_id = null, $limit = null, $offset = null, $kind = null) { $this->requiresAuth(); $this->usesJSON(); @@ -420,7 +420,11 @@ public function getNotifications($app_id = null, $limit = null, $offset = null) } if($offset) { - $endpoint.="&offset=".$$offset; + $endpoint.="&offset=".$offset; + } + + if ($kind) { + $endpoint.="&kind=".$kind; } return $this->get($endpoint);