Signed-off-by: Jaswinder Singh <jaswinder.singh0011@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
$logger->info("EbookAPI: Calling an API to registering Patron: $username");
my $res = $self->request($req, $session_id);
- if (defined ($res)) {
- if ($res->{content}->{patronId}) {
+ if (defined($res)) {
+ if ($res->{content}->{patron}->{patronId}) {
$logger->info("EbookAPI: User $username successfully registered with RBDigital portal.");
- return $res->{content}->{patronId};
+ return $res->{content}->{patron}->{patronId};
} else {
- $logger->error("EbookAPI: Registration for $username to RBDigital failed: ".$res->{content}->{message});
+ $logger->error("EbookAPI: Registration for $username to RBDigital failed: " . Dumper($res));
}
}