Loading...

Description

Returns the details of a specific optin on a contact


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID which owns the contact Yes
contactId The contact to check Yes
subscriptionId The subscription ID to pull the details from No

Response Properties

Property Description
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 = XXXX;

const int contactId = XXXXX;

const int subscriptionId = XXXX;

var context = new T70Context();

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

var item = contactSubRepo.Get(subscriptionId);

}

}

 

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