Contoh Get Access Token BSI Maja PHP
Silakan GUnakan Perintah PHP berikut untuk mendapatkan acces token
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://account.makaramas.com/auth/realms/bpi/protocol/openid-connect/token");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt(
$ch,
CURLOPT_POSTFIELDS,
"grant_type=password&client_id=BPxxxxx&client_secret=9exxxx-6xxx-4xxx2-xxxxe-bb5xxxxda79&username=xxxx&password=xxxxx"
);
// In real life you should use something like:
// curl_setopt($ch, CURLOPT_POSTFIELDS,
// http_build_query(array('postvar1' => 'value1')));
// Receive server response ...
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
curl_close($ch);
echo $server_output;
Lanjut Part : 1
Jam : 11:57:11
Durasi Part : 0:0:1
Durasi Total : 0:0:1
Punya Pertanyaan , Silahkan Whatsapp Langsung
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1
Muhammad Ullil Fahri
WA : 089696380422
Tautan WA : https://wa.me/message/SG4YA2XQP5FPE1