我正在使用webaroo api发送消息,我是这个领域的新手,请指导我如何使用这个api发送消息。这是api:-
<?php
$method = 'gupshup.getPublicStream';
$from = '9749633368';
$to = '9749633368';
$skipadult=true;
$url = "http://api.smsgupshup.com/GupshupAPI/rest?skipadult=$skipadult&from=$from
&range=$to&method=$method&v=1.0&format=xml";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$curl_scraped_page = curl_exec($ch);
curl_close($ch);
echo $curl_scraped_page;
?>