blob: 3840b2089bacae273e75d90a93b00d7ca6b807f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/perl
#
# xmlrpc-customer_status.pl username password custnum
use strict;
use Frontier::Client;
use Data::Dumper;
my( $u, $p, $custnum ) = ( @ARGV );
my $userinfo = $u.':'.$p;
my $uri = new URI 'http://localhost/freeside/misc/xmlrpc.cgi';
$uri->userinfo( $userinfo );
my $server = new Frontier::Client ( 'url' => $uri );
my $result = $server->call('Maestro.customer_status', $custnum );
#die $result->{'error'} if $result->{'error'};
print Dumper($result);
1;
|