PHP code example of autoinspector / autoinspector-php
1. Go to this page and download the library: Download autoinspector/autoinspector-php 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/ */
autoinspector / autoinspector-php example snippets
//If you only want to use OAuth 2.0 methods, just pass an empty array to the constructor:
// new \Autoinspector\AutoinspectorClient([])
$autoinspector = new \Autoinspector\AutoinspectorClient('YOU_API_KEY_GOES_HERE');
$inspection = $autoinspector->inspections->car->create([
'delivery' => [
'channel' => 'wsp',
'destination' => '3813635420',
'disabled' => false,
],
'locale' => 'es_AR',
'consumer' => [
'firstName' => 'Luciano',
'lastName' => 'Alvarez',
'email' => '[email protected]',
'identification' => '3213232',
],
'inputs' => [
[
"identifier" => "input_25dd4378-395d-4fe6-8306-65dcead884b0",
"value" => "POLIZA A"
],
],
'car' => [
'plate' => 'AB705SU',
'year' => 2020
],
'templateId' => "6275b69764cef10044676dc5",
'producer' => [
'internalId' => '123'
],
'initialStatus' => 'started'
]);
print_r($inspection, false);
bash
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.