summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-02-11 11:56:39 -0800
committerIvan Kohler <ivan@freeside.biz>2015-02-11 11:56:39 -0800
commit81bad22dc70a9277331d2d15ff25810f615c4a92 (patch)
tree3200e2907bd58498926c070bd24b7d04b08bef9e /bin
parentb68c4a4a92d9b03527f109235093fcc98b98dd2a (diff)
parenta7d1e60f6b411c9a8daa1f654855440f59bc05ea (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'bin')
-rwxr-xr-xbin/xmlrpc-customer_bill_now21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/xmlrpc-customer_bill_now b/bin/xmlrpc-customer_bill_now
new file mode 100755
index 000000000..244b66f06
--- /dev/null
+++ b/bin/xmlrpc-customer_bill_now
@@ -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.bill_now',
+ 'secret' => 'sharingiscaring',
+ 'custnum' => 3,
+);
+
+#die $result->{'error'} if $result->{'error'};
+
+print Dumper($result);
+
+1;