Delete a verified caller ID
The method lets you delete the verified caller ID.
API Endpoint
Delete
https://api.plivo.com/v1/Account/{auth_id}/VerifiedCallerId/{phone_number}
Response
Example Request
1
2
3
4
5
6
7
import plivo
client = plivo . RestClient ( '<Auth>' , '<Token>' )
response = client . verify_callerids . delete_verified_caller_id ( "+91XXXXXXXXXX" )
print ( response )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'rubygems'
require 'plivo'
include Plivo
include Plivo :: Exceptions
api = RestClient . new ( "<auth>" , "<token>" )
begin
response = api . verify_caller_id . delete ( "<verified_number_to_be_deleted>" );
puts response
rescue PlivoRESTError => e
puts 'Exception: ' + e . message
end
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
var plivo = require ( ' plivo ' );
( function main () {
' use strict ' ;
var client = new plivo . Client ( " <auth_id> " , " <auth_token> " );
client . verify . deleteVerifiedCallerId ( ' <verified_phonenumber> ' ). then ( function ( response ) {
console . log ( response )
}, function ( err ) {
console . error ( err );
});
})();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
* Example for Delete a verified caller ID
*/
require 'vendor/autoload.php' ;
use Plivo\RestClient ;
use Plivo\Exceptions\PlivoRestException ;
$client = new RestClient ( "<auth>" , "<token>" );
try {
$response = $client -> verifyCallerId -> deleteVerifiedCallerId ( '+91XXXXXXXXXX' );
print_r ( $response );
}
catch ( PlivoRestException $ex ) {
print_r ( $ex );
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.plivo.examples ;
import com.plivo.api.Plivo ;
import com.plivo.api.exceptions.PlivoRestException ;
import com.plivo.api.exceptions.PlivoValidationException ;
import com.plivo.api.models.verify.Verify ;
import java.io.IOException ;
public class verificationCallerID {
public static void main ( String [] args ) {
Plivo . init ( "<auth>" , "<token>" );
try {
Verify . deleteVerifiedCallerID ( "919571740370" ). delete ();
} catch ( PlivoRestException | PlivoValidationException | IOException e ) {
e . printStackTrace ();
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System ;
using System.Collections.Generic ;
using Plivo ;
using Plivo.Exception ;
namespace PlivoExamples
{
internal class Program
{
public static void Main ( string [] args )
{
var api = new PlivoApi ( "<auth-id>" , "<auth-token>" );
try
{
var response = api . VerifyCallerId . Delete ( "<phone_number>" );
Console . WriteLine ( response );
}
catch ( PlivoRestException e )
{
Console . WriteLine ( "Exception: " + e . Message );
Console . WriteLine ( "Exception: " + e );
}
}
}
}
1
2
curl -X DELETE --user AUTH_ID:AUTH_TOKEN \
https://api.plivo.com/v1/Account/{ auth_id} /VerifiedCallerId/{ phone_number}
1
2
3
4
5
6
err = client . VerifyCallerId . DeleteVerifiedCallerID ( "phone_number" )
if err != nil {
fmt . Print ( "Error" , err . Error ())
return
}
🥳 Thank you! It means a lot to us!
Help Us Improve
Thank you so much for rating the page, we would like to get your input
for further improvements!
Thank you for your feedback!