Loading...

Description

Gets a list of contacts that have opted into the subscription


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account that owns the subscription. Yes
subscriptionId The subscription to get the contact list from. 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;

var context = new T70Context();

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

var list = subContactRepo.GetAll();

}

}

 

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