+ Fix Kayako ticket counts (remove trailing ';')

This commit is contained in:
Bertrand Cournaud 2015-12-04 09:07:07 +01:00
parent 7afb553433
commit 86d16dfc40
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ sub reload_cache {
my $salt = '';
$salt .= int(rand(10)) for 1..10;
my $digest = hmac_sha256_base64 ($salt, $self->{option_results}->{kayako_secret_key});
my $webcontent = $self->{http}->request(url_path => $url_original_path . "/Base/Department&apikey=" . $self->{option_results}->{kayako_api_key} . "&salt=" . $salt . "&signature=" . $digest . "=";);
my $webcontent = $self->{http}->request(url_path => $url_original_path . "/Base/Department&apikey=" . $self->{option_results}->{kayako_api_key} . "&salt=" . $salt . "&signature=" . $digest . "=");
my $xp = XML::XPath->new($webcontent);
my $nodes = $xp->find('departments/department');