Loading...

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.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID to check for history on. Yes

Response Properties

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

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;

var context = new T70Context();

var callHistoryRepo = context.Repository<CallHistory>(new { AccountId = accountId });

var list = callHistoryRepo.GetAll();

}

}

 

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