Loading...

Description

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


Request URL

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

Request Properties

Parameter Description Mandatory
accountId Account ID Yes
keywordId The keyword to which the contacts opted in with. Yes

Response Properties

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

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;

const int keywordId = XXXXXX;

var context = new T70Context();

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

var list = keywordContactRepo.GetAll();

}

}

 

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