Loading...

GET   https://api.3seventy.com/api/v2.1/account/{accountId}/keyword/{keywordId}/contact

Description

Lists all contacts on a keyword as a set of name value pairs.

Path Parameters

accountId integer Account ID required
keywordId integer The keyword to which the contacts opted in with. required

Response Properties application/json

AccountId integer Account Id
Email string
PhoneHardErrorCount integer
PhoneHardErrorSince string
PhoneLastHardError string
PhoneLastSoftError string
PhoneNumber string
PhoneSoftErrorCount integer
PhoneSoftErrorSince string
PhoneStatus string
PhoneStatusId number Status Id
PhoneTotalHardErrorCount integer Total count of hard errors occurances
PhoneTotalSoftErrorCount integer Total count of soft errors occurances
PreferredLanguage string The contacts's preferred language
PreferredLanguageId number The contacts's preferred language


                    

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;

const int keywordId = XXXXXX;

var context = new T70Context();

var keywordContactRepo = context.Repository<KeywordContact>(new { AccountId = accountId, KeywordId =keywordId });

var list = keywordContactRepo.GetAll();

}

}