Loading...

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

Description

Gets a list of all callbacks for an account.

Path Parameters

accountId integer The ID of the account that owns the Callbacks. required

Response Properties application/json

AccountId integer The account which owns this callback object.
Active boolean Set if the callback is active or not.
CallbackType boolean 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 = XXXX;

var context = new T70Context();

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

var list = callbackRepo.GetAll();

}

}