summaryrefslogtreecommitdiff
path: root/bin/xmlrpc-advertising_sources-list.pl
blob: 317a38b7b419c6320cab4e85c7ab97ac9a04a01d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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.list_advertising_sources',
    'secret'  => 'MySecretCode',
);

die $result->{'error'} if $result->{'error'};

print Dumper($result);

print "\nAll Done\n";

exit;