PHP code example of shipdeo / api
1. Go to this page and download the library: Download shipdeo/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/ */
shipdeo / api example snippets
use Shipdeo\Facades\Shipdeo;
$authService = app('shipdeo.auth');
$response = $authService->authenticate(
config('shipdeo.auth.client_id'),
config('shipdeo.auth.client_secret'),
'your-username',
'your-password',
config('shipdeo.auth.platform')
);
echo $response['accessToken'];