PHP Class Notifo_API, Notifo-API-Libraries

Datei anzeigen Open project: notifo/Notifo-API-Libraries Class Usage Examples

Protected Properties

Property Type Description
$apiSecret
$apiUsername

Public Methods

Method 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 method

class constructor
public __construct ( $apiUsername, $apiSecret )

sendMessage() public method

* end function sendNotification
public sendMessage ( $params )

sendNotification() public method

function: sendNotification
public sendNotification ( $params )

sendRequest() public method

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 method

public send_message ( $params )

send_notification() public method

for backwards compatibility
public send_notification ( $params )

send_request() public method

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

set_apisecret() public method

public set_apisecret ( $val )

set_apiusername() public method

public set_apiusername ( $val )

subscribeUser() public method

function: subscribeUser
public subscribeUser ( $username )

subscribe_user() public method

public subscribe_user ( $username )

Property Details

$apiSecret protected_oe property

protected $apiSecret

$apiUsername protected_oe property

protected $apiUsername