8)');
# for translate
use LWP::UserAgent;
use HTTP::Headers;
use URI::Escape;
# for getToken
use JSON;
use Data::Dumper;
use HTTP::Request::Common qw(POST);
#http://stackoverflow.com/questions/39213
elf, $class;
return $self;
}
sub decodeJSON {
my $rawJSON = shift;
my $json = new JSON;
my $obj = $json->decode($rawJSON);
#print "The structure of obj: ".Dump
;
$content = $response->decoded_content;
my $accessToken = &decodeJSON($content);
$authToken = "Bearer" . " " . "$accessToken";
} else {