Loading...

GET   https://api.3seventy.com/api/v2.1/account/{accountId}/campaign?onlyMine={onlyMine}

Description

Get campaign list

Path Parameters

accountId integer The ID of the account that the campaigns belong to. required

Query Strings

onlyMine boolean Unset to display all items. optional

Response Properties application/json

AccountId integer The account that this campaign belongs to.
CampaignType string Caampaign Type
CampaignTypeId number The campaign type.
ContentId integer Pointer to the attached content group.
IsDefault boolean This is to set a default campaign
Name string Name of the campaign
Session integer Set to indicate that a campaign should start a session when the user first enters it.
SessionLength integer Dictates the timeout period for sessions. Sessions that exceed this value in milliseconds before a response will expire.
SingleUse boolean This Flag is for checking Single Send Campaign. default value is False.
SingleUseContentId integer This is set to the content Id for Single Send Campaign response.
SubscriptionId integer The default subscription to opt someone into on this campaign.
UserData string Arbitrary user data field.


                    

C#


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

var context = new T70Context();

var campaignRepo = context.Repository<Campaign>(new { AccountId = accountId });

var list = campaignRepo.GetAll();

}

}