summaryrefslogtreecommitdiff
path: root/t/62-getDIDs.t
blob: 35e42becf0bfbe3a6cf3b52e992a19376eace4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/perl -w

#BEGIN {
#  $Net::HTTPS::Any::skip_NetSSLeay = 1;
#  $Net::HTTPS::Any::skip_NetSSLeay = 1;
#}

use Test::More;

require 't/lib/test_account.pl';
require Net::GlobalPOPs::MediaServicesAPI;

my($login, $password) = test_account_or_skip();
plan tests => 1;


my $debug = $ENV{TEST_VERBOSE};

my $gp = Net::GlobalPOPs::MediaServicesAPI->new( 'login'    => $login,
                                                 'password' => $password,
                                                 #'debug'    => $debug,
                                               );
my $return = $gp->getDIDs(
  'state'   => 'CA',
  'lata'    => '722',
  #'npa'   => '415',
  'orderby' => 'ORDER BY npa', #?
);

use Data::Dumper;
diag( Dumper($return) ); # if $debug;

#XXX test some things about the return...
ok( $return, 'getDIDs returned something' );