SimpleSoftwareIO\SMS\Drivers\NexmoSMS::getMessage PHP Method

getMessage() public method

Gets a single message by it's ID.
public getMessage ( string | integer $messageId ) : IncomingMessage
$messageId string | integer
return SimpleSoftwareIO\SMS\IncomingMessage
    public function getMessage($messageId)
    {
        $this->buildCall('/search/message/' . $this->apiKey . '/' . $this->apiSecret . '/' . $messageId);
        return $this->makeMessage(json_decode($this->getRequest()->getBody()->getContents()));
    }