diff --git a/src/Provider/Modulbank.php b/src/Provider/Modulbank.php index d454942..8363e09 100644 --- a/src/Provider/Modulbank.php +++ b/src/Provider/Modulbank.php @@ -157,11 +157,11 @@ public function getResourceOwnerDetailsUrl(AccessToken $token) */ public function getAccountInfo() { - return $this->getAuthenticatedRequest( + return json_decode((string)$this->sendRequest($this->getAuthenticatedRequest( 'POST', $this->domainApi.'/account-info', $this->token - ); + ))->getBody(), true); } /** @@ -190,12 +190,12 @@ public function getOperationHistory($bankAccountId, $category = null, $records = $params['from'] = $from; } - return $this->getAuthenticatedRequest( + return json_decode((string)$this->sendRequest($this->getAuthenticatedRequest( 'POST', $this->domainApi.'/operation-history/'.$bankAccountId, $this->token, $params - ); + ))->getBody(), true); } /** @@ -207,11 +207,11 @@ public function getOperationHistory($bankAccountId, $category = null, $records = */ public function getBalance($bankAccountId) { - return $this->getAuthenticatedRequest( + return json_decode((string)$this->sendRequest($this->getAuthenticatedRequest( 'POST', $this->domainApi.'/account-info/balance/'.$bankAccountId, $this->token - ); + ))->getBody(), true); } /**