Gets a single message by it's ID.

@param string|int $messageId

@return \SimpleSoftwareIO\SMS\IncomingMessage
488921
public function getMessage($messageId)
    {
        $rawMessage = $this->plivo->get_message(['record_id' => $messageId]);
        $incomingMessage = $this->createIncomingMessage();
        $this->processReceive($incomingMessage, $rawMessage);

        return $incomingMessage;
    }
3440
public function getMessage($id = '')
    {
        $message = [];
        if (is_array($this->messages) == true) {
            foreach($this ->messages as $msg) {
                if ($msg['index'] == $id) {
                    $message = $msg;
                    break;
                }
            }
        }

        if (is_array($message) === true) {
            // Get the message body but do not mark as read
            $message['body'] = quoted_printable_decode(imap_fetchbody($this->conn, $message['index'], FT_PEEK));
        }

        return $message;
    }
392357
public function retrieve($notificationId)
    {
        $response = $this->sendRequest(
            self::METHOD_GET,
            str_replace(':notification_id', $notificationId, self::$endPoints['retrieve']),
            $this->requestData
        );
        $this->resetRequestData();
        return $response;
    }
1318475
public function get($messageId)
    {
        if (!isset($this->messages[$messageId])) {
            return null;
        }

        return new OutboxMessage($messageId, $this->messages[$messageId]->getTransportOperations());
    }
577023
public function getTokenResult($messageId, $token)
    {
        $verification = $this->factory->createEmptyVerification();
        $verification->verify($token, $messageId);

        return $verification;
    }
1124272
public function getEmailByEmailId($emailID) {
        $email = $this->model->where('id', $emailID)->first();

        return $email->title;
    }
318178
public function deleteCollectorMessage($collectorId, $messageId)
	{
		return $this->sendRequest(
			$this->createRequest('DELETE', sprintf('collectors/%s/messages/%s', $collectorId, $messageId))
		);
	}
1079436
public A messageId(String messageId) {
        this.headers.add(Pair.of("X-MessageId", messageId));
        return (A)this;
    }
272262
public function getVerification($messageId)
    {
        $verification = $this->factory->createEmptyVerification();
        $verification->populate($messageId);

        return $verification;
    }
197965
public function GetNew($ConversationID, $LastMessageID) {
      $Session = Gdn::Session();
      $this->SQL->Where('MessageID > ', $LastMessageID);
      return $this->Get($ConversationID, $Session->UserID);
   }
716736
def get_message_by_id(self, message_id):
        
        result = self.wapi_functions.getMessageById(message_id)

        if result:
            result = factory_message(result, self)

        return result
669977
public function getMessageInformation($id = '')
    {
        $message = [];
        if (is_array($this->messages) == true) {
            foreach($this ->messages as $msg) {
                if ($msg['index'] == $id) {
                    return $msg;
                }
            }
        }
        return $message;
    }
80316
protected function generateMessageTemplate($messageID) {
		$subject = $this->getConfigSetting('PipelineConfig', 'Subjects', $messageID);
		$message = $this->getConfigSetting('PipelineConfig', 'Messages',  $messageID);
		$substitutions = $this->getReplacements();
		return $this->injectMessageReplacements($message, $subject, $substitutions);
	}
322837
public function delete_message($messageId, $boxId)
    {
        try {
            $manager = $this->container->get('symbb.extension.tapatalk.manager.user');
            return $manager->deleteMessage($messageId, $boxId);
        } catch (\Exception $exc) {
            return $this->errorResponse($exc);
        }
    }
1215923
public function voice($mediaid = '')
    {
        $this->message = [
            'CreateTime'   => time(),
            'MsgType'      => 'voice',
            'ToUserName'   => $this->getOpenid(),
            'FromUserName' => $this->getToOpenid(),
            'Voice'        => ['MediaId' => $mediaid],
        ];
        return $this;
    }
329905
public function get_message($messageId, $boxId)
    {
        try {
            $manager = $this->container->get('symbb.extension.tapatalk.manager.user');
            return $manager->getMessage($messageId, $boxId);
        } catch (\Exception $exc) {
            return $this->errorResponse($exc);
        }
    }
623694
public function getEntityContent($messageId, $entityId)
    {
        return $this->diadocApi->getEntityContent($this->boxId, $messageId, $entityId);
    }