Chilkat Online Tools

Perl / Plivo REST API / Delete an incoming carrier

Back to Collection Items

use chilkat();

# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.

$http = chilkat::CkHttp->new();

$http->put_BasicAuth(1);
$http->put_Login("{{auth_id}}");
$http->put_Password("password");

# resp is a HttpResponse
$resp = $http->QuickRequest("DELETE","https://api.plivo.com/v1/Account/<auth_id>/IncomingCarrier/{carrier_id}/");
if ($http->get_LastMethodSuccess() == 0) {
    print $http->lastErrorText() . "\r\n";
    exit;
}

print $resp->get_StatusCode() . "\r\n";
print $resp->bodyStr() . "\r\n";

Curl Command

curl -X DELETE
	-u '{{auth_id}}:password'
https://api.plivo.com/v1/Account/<auth_id>/IncomingCarrier/{carrier_id}/

Postman Collection Item JSON

{
  "name": "Delete an incoming carrier",
  "request": {
    "method": "DELETE",
    "header": [
    ],
    "url": {
      "raw": "https://api.plivo.com/v1/Account/{{auth_id}}/IncomingCarrier/{carrier_id}/",
      "protocol": "https",
      "host": [
        "api",
        "plivo",
        "com"
      ],
      "path": [
        "v1",
        "Account",
        "{{auth_id}}",
        "IncomingCarrier",
        "{carrier_id}",
        ""
      ]
    }
  },
  "response": [
  ]
}