Loading...

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

Description

Gets all chat conversations for specified account

Path Parameters

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

Response Properties application/json

Id integer The ID the conversation log.
AccountId integer The account ID the conversation belongs to.
AutoResponded string True if target already got auto-response message
ContactId integer A contact you are talking to
DisplayName string A name to display
LastMessage string Last incoming message timestamp
RealTarget string Real target -- holding phone number for SMS users
Target string Collocutor(s) -- nick or channel name
UnreadCount integer Total messages unread.
{
  "Id": 1,
  "AccountId": 43510,
  "AssignedTo": 43510,
  "AutoResponded": false,
  "ContactId": 6047531,
  "DisplayName": "Test Phone 08",
  "FirstName": "Test",
  "LastName": "3808",
  "LastMessage": "2018-06-28T16:35:48",
  "RealTarget": "+151254XXXXX",
  "Target": "US5125453XXX",
  "UnreadCount": 1,
  "Unsubscribed": false,
  "LastMessageData": null
}

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;

var context = new T70Context();

var chatConversationLogRepo = context.Repository<ChatConversationLog>(new { AccountId = accountId });

var list = chatConversationLogRepo.GetAll();

}

}