Signature

Generate symmetric & asymmetric signature

Please set the configuration first before using this Signature helper.

All supported APIs automatically use signatures. You don't need to bother adding it manually

Asymmetric

use Otnansirk\SnapBI\Support\Signature;
use Otnansirk\SnapBI\Services\BCA\BcaConfig

$xSignature = Signature::asymmetric(BcaConfig::class)

Symmetric

use Otnansirk\SnapBI\Support\Signature;
use Otnansirk\SnapBI\Services\BCA\BcaConfig

$method       = "POST";
$path         = "/openapi/v1.0"; 
$body         = [];
$timestamp    = "time_iso_string" 
$accessToken  = "access_token"

$xSignature = Signature::symmetric(BcaConfig::class, $method, $path, $body, $timestamp, $accessToken)

Last updated