1. Go to this page and download the library: Download netinternet/parasut-v4 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/ */
netinternet / parasut-v4 example snippets
use Parasut;
nt([
"client_id" => "xxxxxxx",
"username" => "xxxxxx",
"password" => "xxxxxxxx",
"grant_type" => "password",
"redirect_uri" => "urn:ietf:wg:oauth:2.0:oob",
'company_id' => "xxxxx"
]);
// automatically get access token and save src/token.ini
$productArr = array(
'data' => array (
'type' => 'products',
'attributes' => array (
'name' => 'xxxx xx x x x x xx '
)
)
);
$client->call(Parasut\Product::class)->create($productArr);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.