SimpleSoftwareIO\SMS\Drivers\FlowrouteSMS::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('/' . $messageId);
        return $this->makeMessage(json_decode($this->getRequest()->getBody()->getContents())->data);
    }