Loading...

Description

This function returns a token used for the IRC password field for logging in. Tokens have an expiration date, and will no longer be valid after a certain period of time. In order to login again you must call this function to get a new token.


Request URL

GET   https://api.3seventy.com/api/v2.1/chattoken/{accountId}

Request Properties

Parameter Description Mandatory
accountId The account ID that the users belong to. Yes

Response Properties

Property Description
Token The login token.
UserName The user name this token is for (for reference)
ExpirationDate When this token will no longer be valid. Time is in UTC.

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 = 4662;

var context = new T70Context();

var userChatTokenRepo = context.Repository<UserChatToken>();

var item = userChatTokenRepo.Get(accountId);

}

}

 

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