Now with SMS ! New
or create new account
Anveo Communicator API - Send Text Message

Overview

Anveo provides a simple HTTP interface to send a message to Anveo Communicator.
HTTP Request


Text Message API is using HTTP REST to send a messages to Anveo Communicator.
Both POST and GET methods are supported.

HTTP URL format to send a message:
https://www.anveo.com/apihttp.asp?apikey=YOURAPIKEY&action=communicator.message&nickname=COMMUNICATORNICKNAME&message=XXXXXXXXXXXXXXX
where
apikey [required] is your API KEY from Anveo API
nickname [requered] is Communicator Nickname. Communicator Nickname should belong to either your account or one of your sub-accounts.
message [required] URLEncoded text message to be send to Anveo Communicaot.
Anveo Communicator must be online in order to receive a message.
PHP Code Sample
#!/usr/bin/php -q
<?php
/**
* Anveo API script v1.0
*
* PHP Script for sending a text message to Anveo Communicator
*
* PHP versions 4 and 5 compiled with curl and https support
* LICENSE: FREE
*
* @author     Anveo.com
*/

/**
* USAGE
* AnveoCommunicatorMessage(<nickname>,<message>)
*
*/
function AnveoCommunicatorMessage($nickanem,$message){
   $apikey="- YOUR API KEY -"; //CHANGE ME

   // need curl with https if using https://
   $ch = curl_init ("https://www.anveo.com/apihttp.asp?apikey=".$apikey."&action=communicator.message&nickname".urlencode(nickname)."&message=".urlencode($message));
   curl_setopt($ch, CURLOPT_TIMEOUT, 10);
   curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
   $result=curl_exec ($ch);
   curl_close ($ch);
   echo $result;
}
?>
		
:.:
News Blog About Anveo Terms of Use Privacy Policy FAQ Contact Us © 2024 Anveo Inc.