Loading...

Description

Deletes a keyword from an account's keyword list.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The ID of the account that owns the keyword. Yes
channel The channel that the keyword was responding on. Yes
keyword The ID or name of the keyword to remove. 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 = XXX;

const int channelId = XXX;

const int keywordId = XXXX;

var context = new T70Context();

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

var item = keywordRepo.Get(keywordId);

keywordRepo.Delete(item);

}

}

 

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