Skip to content

Commit

Permalink
Fix sending request
Browse files Browse the repository at this point in the history
  • Loading branch information
slowprog committed Jul 18, 2016
1 parent 9145e96 commit 59315f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Provider/Modulbank.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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);
}

/**
Expand All @@ -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);
}

/**
Expand Down

0 comments on commit 59315f1

Please sign in to comment.