PHP code example of kanekescom / laravel-siasn-api
1. Go to this page and download the library: Download kanekescom/laravel-siasn-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kanekescom / laravel-siasn-api example snippets
use Kanekes\Siasn\Api\Credentials\Token;
Token::getNewApimToken(); // Always request a new APIM token
Token::getApimToken(); // Request APIM token
Token::getNewSsoToken(); // Always request a new SSO token
Token::getSsoToken(); // Request SSO token
Token::forget(); // Remove APIM and SSO tokens
use Kanekes\Siasn\Api\Facades\Siasn;
Siasn::get($endpoint, $params);
use Kanekes\Siasn\Api\Facades\Siasn;
Siasn::withSso()->get($endpoint, $params);