Loading...

Description

Verify the code and activate call forwarding


Request URL

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

Request Properties

Parameter Description Mandatory
accountId Account ID of the long code. Yes
longCode Long code in the following format Ex.1xxxxxxxxxx Yes
VerificationCode Code that user received via audio call Yes

Response Properties

Property Description
AccountId The account which owns this long code.
ChannelId The channel which handles this long code.
Code The ANI for this long code.
ForwardNumber Call Forwarding number
ForwardStatus Status of call forwarding
ForwardVerificationCode Random 6 digit Code that is sent in order to verify forwarding number

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";

const string verificationCode = "XXXXX";

var context = new T70Context();

var callForwardVerificationRepo = context.Repository<CallForwardVerification>(new { AccountId = accountId, Code = longCode});

var item = new CallForwardVerification() {RequestVerificationCode = verificationCode};

callForwardVerificationRepo.Add(item);

}

}

 

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