API-Intis
view release on metacpan or search on metacpan
API/Intis/lib/API/Intis.pm view on Meta::CPAN
foreach my $key(sort keys %params){
say "$key => $params{$key}";
push @ssignature, $params{$key};
};
return md5_hex join('', @ssignature).$APIkey;
};
sub connect {
my ($method, $other_params) = @_;
my $ua = WWW::Mechanize->new(ssl_opts => { verify_hostname => 0 } );
$ua->cookie_jar(HTTP::Cookies->new());
$ua->agent_alias('Linux Mozilla');
my %config = &readConfig();
my $timestamp = $ua->get('https://go.intistele.com/external/get/timestamp.php')->content( raw => 1 );
my %timestamp = (timestamp => $timestamp);
my $output_format;
if ($other_params ne '') {
my %other_params = %{$other_params};
foreach my $key (keys %other_params) {
if ($key eq 'return') {
$output_format = delete $other_params{$key};
( run in 0.353 second using v1.01-cache-2.11-cpan-e9199f4ba4c )