Loading...

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

Description

Returns the details of a specific optin on a contact

Path Parameters

accountId integer The account ID which owns the contact required
contactId integer The contact to check required
subscriptionId integer The subscription ID to pull the details from optional

Response Properties application/json

ContactId integer Contact Id
EmailEnabled boolean Email enabled details
MmsEnabled boolean MMS enabled details
SmsEnabled boolean SMS enabled details
Subscription boolean 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 = 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);

}

}