Loading...

Description

Allows you to make a voice call from your LongCode to a valid phone number and will speak the provided sentance


Request URL

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

Request Properties

Parameter Description Mandatory
accountId Account ID of the long code. Yes
longCode Long code (From phone number) in the following format Ex.1xxxxxxxxxx Yes
ToNumber Phone number to which the call will be made Yes
SpeakSentance Sentance to speak 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 = XXXX;

const string longCode = "1XXXXXXXXXX";

var item = new VoiceCall()
{

SpeakSentance = "Test with a sentence!",

ToNumber = "+1XXXXXXXXXX"

};

var context = new VoiceRestContext();

context.VoiceCall(accountId, longCode, item);

}

}

 

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