Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #31 from kstratis/Feature-30
Browse files Browse the repository at this point in the history
Adds the `User/:Id/Catalog` endpoint
  • Loading branch information
xarhsdev authored Feb 21, 2019
2 parents 0f8a695 + db2ee98 commit 5a19260
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
.idea
.DS_Store
Binary file modified Documentation/API Documentation.docx
Binary file not shown.
Binary file modified Documentation/API Documentation.pdf
Binary file not shown.
36 changes: 36 additions & 0 deletions Source/Epignosis/eFrontPro/Sdk/API/Handler/Catalog.php
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
);
}

}
2 changes: 1 addition & 1 deletion Source/Epignosis/eFrontPro/Sdk/eFrontProSDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class eFrontProSDK
*
* @var string
*/
private static $_sdkVersion = '3.2.0';
private static $_sdkVersion = '3.3.0';


/**
Expand Down

0 comments on commit 5a19260

Please sign in to comment.