\Gomoob\Pushwoosh\Model\RequestDeleteMessageRequest

Class which represents Pushwoosh '/deleteMessage' request.

Summary

Methods
Properties
Constants
create()
getAuth()
getMessage()
setAuth()
setMessage()
toJSON()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$auth
$message
N/A

Properties

$auth

$auth : string

The API access token from the Pushwoosh control panel (create this token at https://cp.pushwoosh.com/api_access).

Type

string

$message

$message : string

The message code obtained in createMessage.

Type

string

Methods

getAuth()

getAuth() : string

Gets the API access token from the Pushwoosh control panel (create this token at https://cp.pushwoosh.com/api_access).

Returns

string —

the API access token from the Pushwoosh control panel (create this token at

    https://cp.pushwoosh.com/api_access).

getMessage()

getMessage() : string

Gets the message code obtained in createMessage.

Returns

string —

the message code obtained in createMessage.

setAuth()

setAuth(string $auth) : \Gomoob\Pushwoosh\Model\Request\DeleteMessageRequest

Sets the API access token from the Pushwoosh control panel (create this token at https://cp.pushwoosh.com/api_access).

Parameters

string $auth

the API access token from the Pushwoosh control panel (create this token at

   https://cp.pushwoosh.com/api_access).

Returns

\Gomoob\Pushwoosh\Model\Request\DeleteMessageRequest

this instance.

setMessage()

setMessage(string $message) : \Gomoob\Pushwoosh\Model\Request\DeleteMessageRequest

Sets the message code obtained in createMessage.

Parameters

string $message

the message code obtained in createdMessage.

Returns

\Gomoob\Pushwoosh\Model\Request\DeleteMessageRequest

this instance.

toJSON()

toJSON() : array

Creates a JSON representation of this request.

Returns

array —

a PHP which can be passed to the 'json_encode' PHP method.