unicodeCpp / Plivo REST API / Retrieve an incoming carrier
Back to Collection Items
#include <CkHttpW.h>
#include <CkStringBuilderW.h>
void ChilkatSample(void)
{
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkHttpW http;
bool success;
http.put_BasicAuth(true);
http.put_Login(L"{{auth_id}}");
http.put_Password(L"password");
CkStringBuilderW sbResponseBody;
success = http.QuickGetSb(L"https://api.plivo.com/v1/Account/<auth_id>/IncomingCarrier/{carrier_id}/",sbResponseBody);
if (success == false) {
wprintf(L"%s\n",http.lastErrorText());
return;
}
wprintf(L"Response status code = %d\n",http.get_LastStatus());
wprintf(L"%s\n",sbResponseBody.getAsString());
}
Curl Command
curl -X GET
-u '{{auth_id}}:password'
https://api.plivo.com/v1/Account/<auth_id>/IncomingCarrier/{carrier_id}/
Postman Collection Item JSON
{
"name": "Retrieve an incoming carrier",
"request": {
"method": "GET",
"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}",
""
]
},
"description": "This API returns the details of an incoming carrier\n\nMore information can be found [here](https://www.plivo.com/docs/numbers/api/incoming-carrier#retrieve-an-incoming-carrier)"
},
"response": [
]
}