[freeside-commits] branch FREESIDE_3_BRANCH updated. 2a3f397fe06f7285dc763bf13e305a41d5911540

Ivan ivan at 420.am
Wed Mar 5 19:59:18 PST 2014


The branch, FREESIDE_3_BRANCH has been updated
       via  2a3f397fe06f7285dc763bf13e305a41d5911540 (commit)
      from  f2718f0968799015e034fe705d198b91c932e9cd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2a3f397fe06f7285dc763bf13e305a41d5911540
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Wed Mar 5 19:59:16 2014 -0800

    backoffice API: query locations example, RT#22830

diff --git a/bin/xmlrpc-location_info b/bin/xmlrpc-location_info
new file mode 100755
index 0000000..b2595dd
--- /dev/null
+++ b/bin/xmlrpc-location_info
@@ -0,0 +1,21 @@
+#!/usr/bin/perl
+
+use strict;
+use Frontier::Client;
+use Data::Dumper;
+
+my $uri = new URI 'http://localhost:8008/';
+
+my $server = new Frontier::Client ( 'url' => $uri );
+
+my $result = $server->call(
+  'FS.API.location_info',
+    'secret'  => 'sharingiscaring',
+    'custnum' => 181318,
+);
+
+#die $result->{'error'} if $result->{'error'};
+
+print Dumper($result);
+
+1;

-----------------------------------------------------------------------

Summary of changes:
 bin/{xmlrpc-customer_info => xmlrpc-location_info} |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
 copy bin/{xmlrpc-customer_info => xmlrpc-location_info} (92%)




More information about the freeside-commits mailing list