diff options
author | khoff <khoff> | 2005-03-02 21:00:59 +0000 |
---|---|---|
committer | khoff <khoff> | 2005-03-02 21:00:59 +0000 |
commit | d9649d434ba0955cd079d70e885b9f33f5ad85b5 (patch) | |
tree | c41f3762e0fd68946546c13548a2d38a6f4ac817 /eg | |
parent | 64072a17bb590c8e79d5eff409357a04a57a7d3b (diff) |
Initial version of the xmlrpc interface for freeside.
Diffstat (limited to 'eg')
-rwxr-xr-x | eg/xmlrpc-example.pl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/eg/xmlrpc-example.pl b/eg/xmlrpc-example.pl new file mode 100755 index 000000000..7a2a0a6f0 --- /dev/null +++ b/eg/xmlrpc-example.pl @@ -0,0 +1,23 @@ +#!/usr/bin/perl + +use strict; +use Frontier::Client; +use Data::Dumper; + +my $server = new Frontier::Client ( + url => 'http://user:pass@freesidehost/misc/xmlrpc.cgi', +); + +#my $method = 'cust_main.smart_search'; +#my @args = (search => '1'); + +my $method = 'Record.qsearch'; +my @args = (cust_main => { }); + +my $result = $server->call($method, @args); + +if (ref($result) eq 'ARRAY') { + print "Result:\n"; + print Dumper(@$result); +} + |