Loading...

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

Description

Returns the chat history for an account and all sub accounts. This endpoint only returns the last 30 days of chat logs. For logs dating further back, please contact support@3seventy.com for assistance.

Path Parameters

accountId integer The account ID to check for history on. required

Response Properties application/json

AccountId integer The account ID the source belonged to.
Command string The IRC command that was sent
LogDate string When this event occurred.
MessageSent string The message that the user sent
Source string Who caused this event to occur.
Target string Who (or what) this event was bound to.


                    

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 callHistoryRepo = context.Repository<CallHistory>(new { AccountId = accountId });

var list = callHistoryRepo.GetAll();

}

}