Loading...

Description

Gets all chat messages for specified account within specified conversation


Request URL

GET   https://api.3seventy.com/api/v2.1/account/{accountId}/chat/conversation/{conversationId}

Request Properties

Parameter Description Mandatory
accountId The account ID to check for chat log. Yes
conversationId Conversation Id Yes

Response Properties

Property Description
ConversationId Conversation ID (see ChatConversationLog)
Incoming Incoming/Outgoing flag
LogDate When this message was sent.
Message The message that the user sent
Sender Who send this message
Viewed False if was not seen by the user, otherwise - true

C#
PHP


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const int conversationId = XXXX;

var context = new T70Context();

var chatMessageLogRepo = context.Repository<ChatMessageLog>(new { AccountId = accountId });

var item = chatMessageLogRepo.Get(conversationId);

}

}

 

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet