Loading...

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

Description

Gets a list of contacts for a specific account.

Path Parameters

accountId integer The account ID which to get the contacts for. required

Response Properties application/json

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


                    

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;

var context = new T70Context();

var contactRepo = context.Repository<Contact>(new { AccountId = accountId });

var list = contactRepo.GetAll();

}

}