Loading...

Description

Opts a contact out of the subscription.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID which owns the subscription. Yes
subscriptionId The ID of the subscription to opt out of. Yes
contactId The contact to remove from the subscription. Yes

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;

const int contactId = XXXXX;

var context = new T70Context();

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

var item = subContactRepo.Get(contactId);

subContactRepo.Delete(item);

}

}

 

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