OneSignal\Notifications::add PHP Method

add() public method

Application authentication key and ID must be set.
public add ( array $data ) : array
$data array
return array
    public function add(array $data)
    {
        return $this->api->request('POST', '/notifications', ['Authorization' => 'Basic ' . $this->api->getConfig()->getApplicationAuthKey()], json_encode($this->resolve($data)));
    }