Loading...

Description

Creates a new keyword with the supplied details.


Request URL

POST   https://api.3seventy.com/api/v2.1/account/{accountId}/channel/{channel}/keyword

Request Properties

Parameter Description Mandatory
accountId The account that will own the keyword. Yes
channel The channel that the keyword will respond on. Yes
Name The name of the keyword to reserve. Yes
CallbackRequired Boolean to specify if the client requires a callback when this keyword is texted in. Yes

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 = XXX;

var context = new T70Context();

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

var keyword = new Keyword

{

Name = "Keyword_SDK_Test1",

CallbackRequired = false

};

keywordRepo.Add(keyword);

}

}

 

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