Loading...

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

Description

Gets all chat messages for specified account within specified conversation

Path Parameters

accountId integer The account ID to check for chat log. required
conversationId integer Conversation Id required

Response Properties application/json

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


                    

C#


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);

}

}