Loading...

Description

Gets a list of keywords associated with an account/channel.


Request URL

GET   https://api.3seventy.com/api/v2.1/account/{accountId}/channel/{channel}/keyword?active={active}

Request Properties

Parameter Description Mandatory
accountId The account ID which the keywords belong to. Yes
channel The channel (or channel ID) which the keywords respond on. Yes
active Set if only active keywords should be returned, false to return all keywords. No

Response Properties

Property Description
AccountId Account Id
CallbackRequired Boolean to specify if the client requires a callback when this keyword is texted in.
CampaignId Campaign ID
ChannelCode The short or long code this keyword is reserved on.
ChannelId Channel Id
Name Name of the Keyword
Status Convenience mapping to ResourceStatusValue enumeration.
StatusId Status Id

C#
PHP


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;

const int channelId = XXXX;

var context = new T70Context();

var keywordRepo = context.Repository<Keyword>(new { AccountId = accountId, ChannelId = channelId });

var list = keywordRepo.GetAll();

}

}

 

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