Loading...

Description

Creates a new callback object.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account that needs a callback setup. Yes
CallbackType The type of callback. Yes
URL URL to callback Yes
Active Used to quickly enable/disable the callback. Yes

C#
PHP


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

public class Program
{

private static void Main(string[] args)
{

const int accountId = 4662;

var context = new T70Context();

var callbackRepo = context.Repository<Callback>(new { AccountId = accountId });

var item = new Callback()
{

Active = true,

AccountId = accountId,

CallbackType = CallbackType.Keyword,

Url = ""

};

callbackRepo.Add(item);

}

}

 

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