This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from kstratis/Feature-30
Adds the `User/:Id/Catalog` endpoint
- Loading branch information
Showing
5 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.idea | ||
.idea | ||
.DS_Store |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace Epignosis\eFrontPro\Sdk\API\Handler; | ||
|
||
use Epignosis\eFrontPro\Sdk\API\Abstraction\AbstractAPI; | ||
|
||
/** | ||
* Class Content | ||
* | ||
* @author EPIGNOSIS | ||
* @package Epignosis\eFrontPro\Sdk | ||
* @since 3.3.0 | ||
*/ | ||
class Catalog extends AbstractAPI | ||
{ | ||
/** | ||
* Returns the course catalog for a given user. | ||
* | ||
* @since 3.3.0 | ||
* | ||
* @param mixed $userId (Required) | The user identifier. | ||
* | ||
* @throws \Exception | ||
* | ||
* @return array (Associative) | ||
*/ | ||
public function GetInfo($userId) { | ||
$this->_CheckId($userId); | ||
|
||
return $this->_requestHandler->Get ( | ||
$this->_GetAPICallURL(sprintf('/User/%s/Catalog', $userId)), | ||
$this->_apiKey | ||
); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters