summaryrefslogtreecommitdiff
path: root/bin/xmlrpc-customer_bill_now
blob: 244b66f0638bbed09639ba64bee1eed22002729d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;