summaryrefslogtreecommitdiff
path: root/t/62-getDIDs.t
blob: 79c33e7852c1695f6afbdc13a087d3c4f2efd3c4 (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
35
36
#!/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::VoIP_Innovations;

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


my $debug = $ENV{TEST_VERBOSE};

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

use Data::Dumper;

#test some things about the return...
ok( $return->{type} ne 'Error', 'getDIDs returned no error' );
diag( Dumper($return) ) if $return->{type} eq 'Error';