PHP code example of kauffinger / onoffice-laravel-adapter
1. Go to this page and download the library: Download kauffinger/onoffice-laravel-adapter 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/ */
kauffinger / onoffice-laravel-adapter example snippets
$response = OnOfficeApi::send($request);
$response->ok(); // would be false
$response->results();
// or as a collection
$response->collectedResults();
$response->getData();
// or as a collection
$response->getCollectedData();
// get the first data array
$response->getData(0);
$response->cacheable();
$request->addAction(
Action::read()
->custom() // this will give you full control over the action, except for the action type
->setResourceType('estate')
->setResourceId(123)
->setParameters([
'data' => ['Id', 'kaufpreis']
])
);