Loading...

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

Description

Returns the details for a specific callback object.

Path Parameters

accountId integer The account that owns the callback. required
callbackId integer The ID of the callback to return. required

Response Properties application/json

AccountId integer The account which owns this callback object.
Active string Set if the callback is active or not.
CallbackType string Enumeration mapping for CallbackTypeId
CallbackTypeId number What sorts of callbacks we should fire on.
URL string The URL to call when the callback is activated.
{
    "AccountId": 42856,
    "CallbackTypeId": 1,
    "URL": "http://callbackreceiver.com/api/KeywordResponder/",
    "Active": true,
    "CallbackType": 1,
    "Id": 3771
}

C#


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

const int callbackId = XXXX;

var context = new T70Context();

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

var item = callbackRepo.Get(callbackId);

}

}