XMLRPC
Note: This is an old API function that has been deprecated. XML-RPC is still supported, but you should refer to its current documentation for information.
XMLRPC (XML Remote Procedure Call) is a protocol for client-server communication that sends and receives information in XML format over HTTP. It defines a communication mechanism by which applications can communicate with each other. XMLRPC is popularly used as an API in Web Services.
ByRSVP makes use of XMLRPC as the preferred protocol for external applications or systems to access ByRSVP's services. XMLRPC is simple, popularly supported in many programming languages, and its calling interface is stable.
Your applications can use XMLRPC to access ByRSVP services, such as sending an SMS through our SMS Gateway.
The following Perl code should be quite self-explanatory.
#!/usr/bin/perl
use strict;
use XMLRPC::Lite;
use Data::Dumper;
my $server = XMLRPC::Lite
-> proxy('https://byrsvp.com/RPC2')
-> call('sendSMS',
apikey => 'demoapikey',
sendto => '91234567',
message => 'This is a test message from ByRSVP.'
);
if ($server->fault) {
print "ERROR: " . $server->faultstring . "\n";
}
else {
print Data::Dumper::Dumper($server->result);
}
Other SMS sending interfaces: Email Interface, and web interface on this web site.