App store vendor's app page added.

This commit is contained in:
cuneytsenturk
2018-10-03 12:10:59 +03:00
parent 1bd23281bb
commit 0a616a0480
4 changed files with 52 additions and 1 deletions

View File

@ -90,6 +90,28 @@ trait Modules
return [];
}
public function getVendors()
{
$response = $this->getRemote('apps/vendors');
if ($response && ($response->getStatusCode() == 200)) {
return json_decode($response->getBody())->data;
}
return [];
}
public function getModulesByVendor($alias, $data = [])
{
$response = $this->getRemote('apps/vendors/' . $alias, 'GET', $data);
if ($response && ($response->getStatusCode() == 200)) {
return json_decode($response->getBody())->data;
}
return [];
}
public function getMyModules($data = [])
{
$response = $this->getRemote('apps/my', 'GET', $data);