Remove Keyword

 

Remove Keyword API can be accessed via HTTPS thru the following URL:
https://api.protexting.com/deletekeyword.php

The following text parameters are available:

(can be passed via POST or GET)

•    All parameters are required!

Option 1 (using username and password)

user
your ProTexting username
password
your ProTexting password
keyword keyword to be removed

Option 2 (using key parameter – recommended)

key
your ProTexting Security Key
keyword keyword to be removed

Remove Keyword API call return codes:

* Negative code represent failure to send message

1
The keyword is available
-2
Invalid user or password
-3
Incorrect keyword format: Keyword should contains only letters and digits. Total number of characters must be between 4 and 50
-8
Your IP address is not allowed
-10
The keyword does not exist
-100
Unknown error

Remove Keyword Examples:

Option 1 – EXAMPLE  - (using username and password)

 PHP

$ch=curl_init('https://api.protexting.com/deletekeyword.php');

curl_setopt($ch,CURLOPT_POST,1);

curl_setopt$ch,CURLOPT_POSTFIELDS,"user=username&password=password&keyword=mykeyword");

curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

$data = curl_exec($ch);

echo $data;

/* result of API call*/

?>

Option 2 – EXAMPLE  - (using key parameter – recommended)

 PHP

$ch=curl_init('https://api.protexting.com/deletekeyword.php');

curl_setopt($ch,CURLOPT_POST,1);

curl_setopt$ch,CURLOPT_POSTFIELDS,"key=yourapikey&keyword=mykeyword");

curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

$data = curl_exec($ch);

echo $data;

/* result of API call*/

?>