Loading...

GET   https://api.3seventy.com/api/v2.1/account/{accountId}/action-pushCampaign

Description

Gets a list of push actions on the account

Path Parameters

accountId integer The account Id which owns the actions. required

Response Properties application/json

Channels array[string] The channels to send the campaign on.
Targets array[string] A list of targets to send to. These can be a mix of phone numbers, emails, or contact IDs.
TargetsUrl string A URL pointing to a list of targets to send to.
ContactListIds array[int] The contact list IDs that the campaign was pushed to.
ExcludeListIds array[int] A contact lists to suppress from contacts to push to.
CampaignId integer The ID of the campaign that was pushed.
MediaId integer The ID of the media file that was pushed
Message string Optional message pushed out. (BASIC Campaigns only)
From string From Address for email channel
Subject string Subject of the email.
IgnoreSingleUse boolean Check if the event is Single Use Push Event.
ForceOptIn boolean Opt an existing contact into the subscription if opted out
StatusId number Status of an action
[
  {
    "Channels": [
      "10936BEND"
    ],
    "Targets": [],
    "TargetsUrl": "",
    "TargetsColumn": "",
    "ContactListIds": [
      3986
    ],
    "ExcludeListIds": [],
    "CampaignId": 22476,
    "MediaId": null,
    "Message": "Test SC",
    "From": "",
    "Subject": "",
    "IgnoreSingleUse": false,
    "ForceOptIn": false,
    "StatusId": 0,
    "Status": "Active",
    "Id": 61922,
    "AccountId": 43510,
    "Created": "2018-06-20T09:39:07",
    "Modified": "2018-06-20T09:39:07",
    "CreatedBy": "Integraton_User_1",
    "ModifiedBy": "",
    "Schedules": []
  },
  {
    "Channels": [
      "+15125467903"
    ],
    "Targets": [],
    "TargetsUrl": "https://blob.core.windows.net/Import_Contacts.csv",
    "TargetsColumn": "TargetTarget",
    "ContactListIds": [],
    "ExcludeListIds": [],
    "CampaignId": 22476,
    "MediaId": null,
    "Message": "",
    "From": "",
    "Subject": "",
    "IgnoreSingleUse": false,
    "ForceOptIn": false,
    "StatusId": 0,
    "Status": "Active",
    "Id": 61921,
    "AccountId": 43510,
    "Created": "2018-06-20T07:35:24",
    "Modified": "2018-06-20T07:35:24",
    "CreatedBy": "Integraton_User_1",
    "ModifiedBy": "",
    "Schedules": []
  }
]

C#


using System;
using System.Collections.Generic;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

 

class Program
{

     static void Main(string[] args)
     {
       const string accountId = "XXXXXXXXXXXXXXXX";

       var context = new T70Context();

       var actionPushRepo = context.Repository<ActionPushCampaign>(new { AccountId = accountId });

       var list = actionPushRepo.GetAll();
      }

}