Loading...

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

Description

Returns all subscriptions to which a contact is opted into.

Path Parameters

accountId integer The account ID which owns the contact required
contactId integer The contact to check required

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

var context = new T70Context();

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

var list = contactSubRepo.GetAll();

}

}