Loading...

POST   https://api.3seventy.com/api/v2.1/account/{accountId}/long-code/{longCode}/audiocall

Description

Allows you to make a call from your LongCode and play an audio file (mp3 or wav formats only) to a valid phone numbe

Path Parameters

accountId integer Account ID of the long code. required
longCode string Long code (From phone number) in the following format Ex.1xxxxxxxxxx required

Request Properties application/json

ToNumber string Phone number to which the call will be made required
AudioUrl string Audio URL to play (mp3 or wav formats only) required
{
  "ToNumber": "+1512xxxxxxx",
  "AudioUrl": ""
}

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

const string longCode = "1XXXXXXXXXX";

var item = new AudioCall()
{

AudioUrl = "test.mp3",

ToNumber = "+1XXXXXXXXXX"

};

var context = new VoiceRestContext();

context.AudioCall(accountId, longCode, item);

}

}