PHP Class Notifo_API, Notifo-API-Libraries

Afficher le fichier Open project: notifo/Notifo-API-Libraries Class Usage Examples

Protected Properties

Свойство Type Description
$apiSecret
$apiUsername

Méthodes publiques

Méthode Description
__construct ( $apiUsername, $apiSecret ) class constructor
sendMessage ( $params ) * end function sendNotification
sendNotification ( $params ) function: sendNotification
sendRequest ( $method, $type, $data ) helper function to send the requests
send_message ( $params )
send_notification ( $params ) for backwards compatibility
send_request ( $url, $type, $data )
set_apisecret ( $val )
set_apiusername ( $val )
subscribeUser ( $username ) function: subscribeUser
subscribe_user ( $username )

Method Details

__construct() public méthode

class constructor
public __construct ( $apiUsername, $apiSecret )

sendMessage() public méthode

* end function sendNotification
public sendMessage ( $params )

sendNotification() public méthode

function: sendNotification
public sendNotification ( $params )

sendRequest() public méthode

helper function to send the requests
public sendRequest ( $method, $type, $data )
$method - name of remote method to call
$type - HTTP method (GET, POST, etc)
$data - array with arguments for remote method

send_message() public méthode

public send_message ( $params )

send_notification() public méthode

for backwards compatibility
public send_notification ( $params )

send_request() public méthode

public send_request ( $url, $type, $data )

set_apisecret() public méthode

public set_apisecret ( $val )

set_apiusername() public méthode

public set_apiusername ( $val )

subscribeUser() public méthode

function: subscribeUser
public subscribeUser ( $username )

subscribe_user() public méthode

public subscribe_user ( $username )

Property Details

$apiSecret protected_oe property

protected $apiSecret

$apiUsername protected_oe property

protected $apiUsername