<?php // Using file_get_contents $key="YOUR-ACCOUNT-KEY"; $catid="CATEGORY-URL-ID"; $customerphone="CUSTOMER-PHONENUMBER"; $arrContextOptions=array( "ssl"=>array( "verify_peer"=>false , "verify_peer_name"=>false , ), ); $data = file_get_contents("https://api.textng.xyz/removecustomer/?key=$key&catid=$catid&customerphone=$customerphone" ,false , stream_context_create($arrContextOptions)); $decode =json_decode ($data); $extracted_data = $decode->D->details; foreach ($extracted_data as $extracted_data_info) {echo $customer_phone = $extracted_data_info->customerphone;echo $catid = $extracted_data_info->catid;echo $status = $extracted_data_info->status; } ?>
Parameters | Example | Description |
---|---|---|
Key | XXXXX-XXXX-XXXXX | This can be found in the Developers page of your dashboard. The key authorizes the transaction. |
catid |
XXXXXXXXXX | This is the category url ID generated for each url link you create. you'll get this in the Customer URL Upload page. |
customerphone |
080XXXXXX | This is the phone number of the recipient/customer to be saved. |
{
"D":{
"details":[{
"customerphone":"080xxxxxx",
"customername":"CUSTOMER-NAME",
"catid":"xxxxxxxxxx",
"status":"successfully-removed "
}]
}
}
}
{
"D":{
"details":[{
"customerphone":"080xxxxxx",
"customername":"CUSTOMER-NAME",
"catid":"xxxxxxxxxx",
"status":"error -customerphone-does-not-exists-in-category
}]
}
}
{
"D":{
"details":[
{
"status":"customerphone-not-exists"
}]
}
}
{
"D":{
"details":[
{
"status":"catid-not-exists"
}
]
}
}
{
"D":{
"details":[
{
"status":"key-invalid"
}
]
}
}