App review add pagination

This commit is contained in:
cuneytsenturk
2018-09-20 18:35:24 +03:00
parent 2ea4722dcf
commit 034c5b828c
5 changed files with 141 additions and 26 deletions

View File

@ -57,6 +57,17 @@ trait Modules
return [];
}
public function getModuleReviews($alias, $data = [])
{
$response = $this->getRemote('apps/' . $alias . '/reviews', 'GET', $data);
if ($response && ($response->getStatusCode() == 200)) {
return json_decode($response->getBody())->data;
}
return [];
}
public function getCategories()
{
$response = $this->getRemote('apps/categories');