getCollectorMessage

@param int $collectorId
@param int $messageId

@return @see Client::sendRequest
967754
public function getCollectorMessage($collectorId, $messageId)
	{
		return $this->sendRequest(
			$this->createRequest('GET', sprintf('collectors/%s/messages/%s', $collectorId, $messageId))
		);
	}
389589
public function getGroupMember($groupId, $memberId)
	{
		return $this->sendRequest(
			$this->createRequest('GET', sprintf('groups/%d/members/%d', $groupId, $memberId))
		);
	}
334954
public function GetID($MessageID) {
      if (Gdn::Cache()->ActiveEnabled())
         return self::Messages($MessageID);
      else
         return parent::GetID($MessageID);
   }
84403
public function GetMessage($messageId, $accessToken = null)
    {
        return $this->provider->executeRequest("GET", "/message/{$messageId}", $accessToken ?: $this->accessToken);
    }
27318
public function mark_pm_read($messageId)
    {
        try {
            $manager = $this->container->get('symbb.extension.tapatalk.manager.user');
            return $manager->markPmRead($messageId);
        } catch (\Exception $exc) {
            return $this->errorResponse($exc);
        }
    }
1327344
public function getConversationMessageById($conversationId, $userID, $channel)
    {
        $conversation = $this->query()->with(['messages', 'messages.sender', 'messages.files', 'firstUser', 'secondUser', 'files'])->find($conversationId);

        $collection = (object) null;
        $collection->conversationId = $conversationId;
        $collection->channel_name = $channel;
        $collection->user = ($conversation->firstUser->id == $userID) ? $conversation->secondUser : $conversation->firstUser;
        $collection->messages = $conversation->messages;
        $collection->files = $conversation->files;

        return collect($collection);
    }
847676
public function sendCollectorMessage($collectorId, $messageId, \DateTime $scheduledDate = null)
	{
		$data = $scheduledDate ? [ 'scheduled_date' => $scheduledDate->format(DATE_ATOM) ] : [];
		
		return $this->sendRequest(
			$this->createRequest('POST', sprintf('collectors/%s/messages/%s/send', $collectorId, $messageId), [], $data)
		);
	}
1018901
public function deleteMessage($messageId, $boxId)
    {
        $this->debug('$messageId');
        $message = $this->messageManager->find($messageId);
        $success = $this->messageManager->remove($message);

        $result['result'] = new \Zend\XmlRpc\Value\Boolean($success);
        $response = $this->getResponse($result, 'struct');

        return $response;
    }
966291
public function getCollectorResponse($collectorId, $responseId, $detailed = false)
	{
		if ($detailed) {
			return $this->sendRequest(
				$this->createRequest('GET', sprintf('collectors/%d/responses/%d', $collectorId, $responseId))
			);
		} else {
			return $this->sendRequest(
				$this->createRequest('GET', sprintf('collectors/%d/responses/%d/details', $collectorId, $responseId))
			);
		}
	}
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
977715
public function sendMessageByUserId($receiverId, $message)
    {
        if ($conversationId = $this->isConversationExists($receiverId)) {
            $message = $this->makeMessage($conversationId, $message);

            return $message;
        }

        $convId = $this->newConversation($receiverId);
        $message = $this->makeMessage($convId, $message);

        return $message;
    }
1365668
private void sendMessage(Crouton crouton, final int messageId) {
    final Message message = obtainMessage(messageId);
    message.obj = crouton;
    sendMessage(message);
  }
1110396
public function getMessage($messageId, $boxId)
    {

        $this->debug('getMessage');
        $message = $this->messageManager->find($messageId);
        $text = $message->getMessage();

        $msgTo = array();
        foreach ($message->getReceivers() as $reciver) {
            $msgTo[] = new \Zend\XmlRpc\Value\Struct(array(
                'user_id' => new \Zend\XmlRpc\Value\String($reciver->getUser()->getId()),
                'username' => new \Zend\XmlRpc\Value\Base64($reciver->getUser()->getUsername())
            ));
        }


        $result['result'] = new \Zend\XmlRpc\Value\Boolean(true);
        $result['msg_from_id'] = new \Zend\XmlRpc\Value\String($message->getSender()->getId());
        $result['msg_from'] = new \Zend\XmlRpc\Value\Base64($message->getSender()->getUsername());
        $result['icon_url'] = new \Zend\XmlRpc\Value\String($this->userManager->getAbsoluteAvatarUrl($message->getSender()));
        $result['sent_date'] = new \Zend\XmlRpc\Value\DateTime($message->getDate());
        $result['msg_subject'] = new \Zend\XmlRpc\Value\Base64($message->getSubject());
        $result['text_body'] = new \Zend\XmlRpc\Value\Base64($text);
        $result['msg_to'] = $msgTo;

        $response = $this->getResponse($result, 'struct');

        return $response;
    }
1279943
public function getMessage($messageId, $parameters = [], $locale = "en")
    {
        return $this->translations->getTranslation($messageId, $parameters, $locale);
    }
666166
public function replaceCollector($collectorId, array $data = [])
	{
		return $this->sendRequest(
			$this->createRequest('PUT', sprintf('collectors/%s', $collectorId), [], $data)
		);
	}
107144
public static SendMessageBatchRequestEntry createSendMessageBatchRequestEntryFrom(String id,
                                                                                      SendMessageRequest sendMessageRequest) {
        return new SendMessageBatchRequestEntry()
                .withId(id)
                .withMessageBody(sendMessageRequest.getMessageBody())
                .withDelaySeconds(sendMessageRequest.getDelaySeconds())
                .withMessageAttributes(sendMessageRequest.getMessageAttributes())
                .withMessageDeduplicationId(sendMessageRequest.getMessageDeduplicationId())
                .withMessageGroupId(sendMessageRequest.getMessageGroupId());
    }
1017208
public function copyCollectorMessage($collectorId, $fromCollectorId, $fromMessageId, $includeRecipients = false)
	{
		return $this->sendRequest(
			$this->createRequest('POST', sprintf('collectors/%s/messages', $collectorId), [
				'query' => [
					'from_collector_id'  => $fromCollectorId,
					'from_message_id' 	 => $fromMessageId,
					'include_recipients' => (bool)$includeRecipients,
				]
			])
		);
	}