Loading...

Description

Creates a new chat campaign


Request URL

POST   https://api.3seventy.com/api/v2.1/account/{accountId}/campaign/{campaignId}/chat

Request Properties

Parameter Description Mandatory
accountId The account which owns the campaign. Yes
campaignId The campaign which the chat object is attached. Yes
SummonChannel The channel to send summon messages on. Yes
GroupName The default group to join the user to when they first sign in. Yes
AutoResponse Set if you want to send auto respond when user answers your chat No
AutoResponseMessage Message to send as auto response No

Response Properties

Property Description
accountId The account which owns the campaign.
campaignId The campaign which the chat object is attached.
SummonChannel The channel to send summon messages on.
GroupName The default group to join the user to when they first sign in.
AutoResponse Set if you want to send auto respond when user answers your chat
AutoResponseMessage Message to send as auto response

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 campaignId = XXXX;

var context = new T70Context();

var chatCampRepo = context.Repository<CampaignChat>(new { AccountId = accountId });

var item = new CampaignChat()

{

AccountId = accountId,

CampaignId = campaignId,

AutoResponse = false,

SummonChannel = ""

};

chatCampRepo.Add(item);

}

}

 

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