Loading...

Description

Lists all attributes on a contact as a set of name value pairs.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account which the contact is owned by Yes
contactId The contact to which the attributes belong. Yes

Response Properties

Property Description
Id The ID of the attribute defintion.
Name The name of this attribute.
Value The value of this attribute.

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 contactId = XXXX;

var context = new T70Context();

var contactAttributeRepo = context.Repository<ContactAttribute>(new { AccountId = accountId, ContactId = contactId });

var list = contactAttributeRepo.GetAll();

}

}

 

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