[freeside-commits] freeside/bin xmlrpc-customer_status.pl, NONE, 1.1 xmlrpc-order_pkg.pl, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Mon Sep 20 14:13:18 PDT 2010
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail.420.am:/tmp/cvs-serv2290/bin
Added Files:
xmlrpc-customer_status.pl xmlrpc-order_pkg.pl
Log Message:
Maestro.order_pkg API
--- NEW FILE: xmlrpc-order_pkg.pl ---
#!/usr/bin/perl
#
# xmlrpc-order_pkg.pl username password
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.order_pkg',
{
'custnum' => 8,
'pkgpart' => 3,
'id' => $$, #unique
'title' => 'John Q. Public', #'name' also works
#(turn off global_unique-pbx_title)
},
);
#die $result->{'error'} if $result->{'error'};
print Dumper($result);
1;
--- NEW FILE: xmlrpc-customer_status.pl ---
#!/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;
More information about the freeside-commits
mailing list