Loading...

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

Description

Returns a list of channels that fall under a given account.

Path Parameters

accountId integer The account that the channels belongs to required

Response Properties application/json

AllowVerify boolean If we can send handset verifications on.
ChannelType string Enumeration mapping for ChannelTypeId
DefaultLanguage string The default language type for a channel.
DefaultLanguageId number The default language type for a channel.
Description string Channel Description
IsActive boolean If the channel is currently active and running.
IsMediaEnabled boolean If the channel supports MMS.
Label string Channel Label
Name string Name of the Channel
OverrideGroup string Language override group for the channel
ThreadSleep integer Thread sleep timeout in milliseconds
type string
UseLongCodes boolean If this channel uses long codes or not.


                    

C#


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

var context = new T70Context();

var channelRepo = context.Repository<Channel>(new { AccountId = accountId });

var list = channelRepo.GetAll();

}

}