PHP 클래스 Notifo_API, Notifo-API-Libraries

파일 보기 프로젝트 열기: notifo/Notifo-API-Libraries 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$apiSecret
$apiUsername

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

class constructor
public __construct ( $apiUsername, $apiSecret )

sendMessage() 공개 메소드

* end function sendNotification
public sendMessage ( $params )

sendNotification() 공개 메소드

function: sendNotification
public sendNotification ( $params )

sendRequest() 공개 메소드

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 send_message ( $params )

send_notification() 공개 메소드

for backwards compatibility
public send_notification ( $params )

send_request() 공개 메소드

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

set_apisecret() 공개 메소드

public set_apisecret ( $val )

set_apiusername() 공개 메소드

public set_apiusername ( $val )

subscribeUser() 공개 메소드

function: subscribeUser
public subscribeUser ( $username )

subscribe_user() 공개 메소드

public subscribe_user ( $username )

프로퍼티 상세

$apiSecret 보호되어 있는 프로퍼티

protected $apiSecret

$apiUsername 보호되어 있는 프로퍼티

protected $apiUsername