Skip to content

Commit

Permalink
Merge pull request #3 from SonarSoftwareInc/feature/ab-3950-bank-acco…
Browse files Browse the repository at this point in the history
…unts-only-before

AB#3950 Add account API endpoint
  • Loading branch information
geneccx authored Mar 17, 2021
2 parents 639893e + 35265bc commit 553d820
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/Controllers/AccountController.php
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));
}
}

0 comments on commit 553d820

Please sign in to comment.