Skip to content

Get Token

Aslam edited this page Apr 1, 2021 · 1 revision

Facades

use BcaAPI;

$getToken = BcaAPI::service('Authentication')
    ->AccessToken()
    ->toJson();

Helper

$getToken = bcaapi()
    ->service('Authentication')
    ->AccessToken()
    ->toJson();

Instead of requesting access_token everytime you make an API call. you should put the access token (first time you generate token) in your database. later you can check if token exists and not expired. then use token from database.

$getToken['access_token'];
$getToken['expires_in'];
  1. Installation
  2. Services
  3. Get Token
  4. Business Banking
  5. Sakuku
  6. General Information
  7. Fire
  8. Virtual Account
  9. Notification
  10. Financing
  11. Fund Collection
  12. Flazz BCA

Clone this wiki locally