Loading...

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

Description

Returns opt in information if the contact is opted in. Otherwise returns a No Content message if the contact is not currently opted in.

Path Parameters

accountId integer The account ID which owns the subscription. required
subscriptionId integer The subscription ID which the contact has a history with. required
contactId integer The ID of the contact who's history is to be checked. required

Response Properties application/json

Contact object Contact Information.
ContactId integer Contact Id
EmailEnabled boolean Email Enabled Details
MmsEnabled boolean MMS Enabled Details
SmsEnabled boolean SMS Enabled Details
Subscription object Subscription Details
SubscriptionId integer Subscription Id
VoiceEnabled boolean Voice Enabled Details


                    

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 = XXX;

const int subscriptionId = XXXX;

const int contactId = XXXXX;

var context = new T70Context();

var subContactRepo = context.Repository<SubscriptionContact>(new { AccountId = accountId, SubscriptionId = subscriptionId });

var item = subContactRepo.Get(contactId);

}

}