autoit / Plivo REST API / Delete an incoming carrier
Back to Collection Items
; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oHttp = ObjCreate("Chilkat.Http")
Local $bSuccess
$oHttp.BasicAuth = True
$oHttp.Login = "{{auth_id}}"
$oHttp.Password = "password"
Local $oResp = $oHttp.QuickRequest("DELETE","https://api.plivo.com/v1/Account/<auth_id>/IncomingCarrier/{carrier_id}/")
If ($oHttp.LastMethodSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite($oResp.StatusCode & @CRLF)
ConsoleWrite($oResp.BodyStr & @CRLF)
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": [
]
}