PHP code example of vdhicts / nuclino-api-client
1. Go to this page and download the library: Download vdhicts/nuclino-api-client 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/ */
vdhicts / nuclino-api-client example snippets
// Initialize the API
$api = new \Vdhicts\Nuclino\Nuclino($apiKey);
// List the items
$response = $api->listItems();
if ($response->ok()) {
$response->json('data');
}
if ($response->failed()) {
var_dump($response->serverError());
}
return [
'api_key' => env('NUCLINO_API_KEY'),
];
$api = new \Vdhicts\Nuclino\Nuclino(config('nuclino.api_key'));