Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
group response edited
Browse files Browse the repository at this point in the history
Group response is giving an array of objects. But there is only one object returned. function is now return first key in array as object
  • Loading branch information
gldrenthe89 committed Jan 8, 2020
1 parent 50e82c7 commit 192dee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KiyohApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function __construct(string $baseUrl, string $apiKey) {
*/
public function getGroupStatistics() {
$fullUrl = 'https://'.$this->baseUrl.'/v1/publication/review/external/group/statistics';
return $this->apiCall($fullUrl);
return $this->apiCall($fullUrl)[0];
}

/**
Expand Down

0 comments on commit 192dee7

Please sign in to comment.