forked from SonarSoftware/customer_portal_framework
-
Notifications
You must be signed in to change notification settings - Fork 4
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 #3 from SonarSoftwareInc/feature/ab-3950-bank-acco…
…unts-only-before AB#3950 Add account API endpoint
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace SonarSoftware\CustomerPortalFramework\Controllers; | ||
|
||
use SonarSoftware\CustomerPortalFramework\Exceptions\ApiException; | ||
use SonarSoftware\CustomerPortalFramework\Helpers\HttpHelper; | ||
|
||
class AccountController | ||
{ | ||
private $httpHelper; | ||
/** | ||
* AccountAuthenticationController constructor. | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->httpHelper = new HttpHelper(); | ||
} | ||
|
||
/* | ||
* GET functions | ||
*/ | ||
|
||
/** | ||
* Get account details | ||
* @param $accountID | ||
* @return mixed | ||
* @throws ApiException | ||
*/ | ||
public function getAccountDetails($accountID) | ||
{ | ||
return $this->httpHelper->get("accounts/" . intval($accountID)); | ||
} | ||
} |