Loading...

Description

Gets a list of contacts for a specific account.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID which to get the contacts for. Yes

Response Properties

Property Description
Id Global identifier for the contact.
AccountId The account that this contact belongs to.
StatusId Current status of a contact
PhoneNumber Mobile number if available.
Email Email address of the contact.
Subscriptions List of subscriptions this contact should be opted into.
Attributes List of currently set attributes for this contact.
Created When this contact was first created.
CreatedBy Who first created this contact.
Modified When the contact was last modified.
ModifiedBy Who last modified this contact.

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 contactRepo = context.Repository<Contact>(new { AccountId = accountId });

var list = contactRepo.GetAll();

}

}

 

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