Loading...

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

Description

Gets a list of contacts that have opted into the subscription

Path Parameters

accountId integer The account that owns the subscription. required
subscriptionId integer The subscription to get the contact list from. 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;

var context = new T70Context();

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

var list = subContactRepo.GetAll();

}

}