Method |
Description |
|
__construct ( string $token, string | integer $room, string $from, string $endpoint ) |
Create a new instance. |
|
getEndpoint ( ) : string |
Get the API host we will send the message to. |
|
getFrom ( ) : string |
Get who the message will be sent from. |
|
getHeaders ( ) : array |
Get the headers that will be sent with the message. |
|
getRoom ( ) : string | integer |
Get the room the message will be sent to. |
|
getToken ( ) : string |
Get the token used to authenticate with. |
|
send ( rcrowe\Hippy\Message\MessageInterface $message ) : void |
Send the message. |
|
setEndpoint ( string $endpoint ) : void |
Set the API host to send the message to. |
|
setFrom ( string $from ) : void |
Set who the message will be sent from. |
|
setHeaders ( array $headers ) : void |
Set the headers that will be sent with the message. |
|
setRoom ( string $room ) : void |
Set the room that the message will be sent to. |
|
setToken ( string $token ) : void |
Set the token used to authenticate with. |
|