PHP code example of basicfinder / basicfinder-saas-sdk
1. Go to this page and download the library: Download basicfinder/basicfinder-saas-sdk 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/ */
basicfinder / basicfinder-saas-sdk example snippets
use BasicfinderSaas\SaasApi;
$saasapi = new SaasApi();
$params = [
'username' => 'your email',
'password' => 'your password',
'app_key' => 'pc-passport',
'app_version' => '1.0.0',
'device_name' => 'Win32',
'device_number' => '123456'
];
$result = $saasapi->site->login($params);
if (!empty($result['error']))
{
var_dump($result);
exit();
}
var_dump($result['data']);
$userInfo = $saasapi->user->detail();
var_dump($userInfo);