PHP code example of vvoleman / zotero-php-wrapper
1. Go to this page and download the library: Download vvoleman/zotero-php-wrapper 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/ */
vvoleman / zotero-php-wrapper example snippets
$api = new ZoteroApi("YOUR_API_KEY",new KeysSource("YOUR_API_KEY"));
$api->run();
$data = $api->getBody();
$api = new ZoteroApi($_ENV["API_KEY"], new UsersSource("YOUR_USER_ID"));
$api->setEndpoint(
(new Collections("COLLECTION_ID"))
->setEndpoint(new Items(AbstractEndpoint::ALL))
);