Loading...

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.


Request URL

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

Request Properties

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

Response Properties

Property Description
Contact Contact Information.
ContactId Contact Id
EmailEnabled Email Enabled Details
MmsEnabled MMS Enabled Details
SmsEnabled SMS Enabled Details
Subscription Subscription Details
SubscriptionId Subscription Id
VoiceEnabled Voice Enabled Details

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

}

}

 

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