GenerateToken
Endpoint para gerar Token de acesso
https://sandbox.agilspotpay.com.br/api/user/loginExemplo com as principais linguagem
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://sandbox.agilspotpay.com.br/api/user/login',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => 'grant_type=password&username=user%40email.com.br&password=senhaforte!',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;curl --location --request POST 'https://sandbox.agilspotpay.com.br/api/user/login' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'username=user@email.com.br' \
--data-urlencode 'password=senhaforte!'Modelo de retorno
Last updated