Run example
Please help, I try to run test example of Your php library for Zotero.But when I to run example with just one request
$tags = $library->fetchTags(array('limit'=>5, 'order'=>'title', 'sort'=>'desc'));
foreach($tags as $tag){
if($tag->numItems > 0){
echo $tag->name . " - " . $tag->numItems . "\n";
}
else{
echo $tag->name . " - has no items\n";
}
}
I take a problem in libZoteroSingle.php in this function:
public function _request($url, $method="GET", $body=NULL, $headers=array())
I get nothing from this line: $responseBody = curl_exec($ch);
$ch is id #4 .
Could You say me whats wrong.
Maybe its a problem with my account , I use next credentials
$libraryType = 'user'; //user or group
$userID = 665653;
$userSlug = 'SBondarenko';
$apiKey = 'k9txWzpPnqwfufOxlmegKLx0';
Thank you
Best Regards Sergey
P.S. I use next library https://github.com/fcheslack/libZotero
$tags = $library->fetchTags(array('limit'=>5, 'order'=>'title', 'sort'=>'desc'));
foreach($tags as $tag){
if($tag->numItems > 0){
echo $tag->name . " - " . $tag->numItems . "\n";
}
else{
echo $tag->name . " - has no items\n";
}
}
I take a problem in libZoteroSingle.php in this function:
public function _request($url, $method="GET", $body=NULL, $headers=array())
I get nothing from this line: $responseBody = curl_exec($ch);
$ch is id #4 .
Could You say me whats wrong.
Maybe its a problem with my account , I use next credentials
$libraryType = 'user'; //user or group
$userID = 665653;
$userSlug = 'SBondarenko';
$apiKey = 'k9txWzpPnqwfufOxlmegKLx0';
Thank you
Best Regards Sergey
P.S. I use next library https://github.com/fcheslack/libZotero
-
dstillmanPlease post dev questions to zotero-dev.
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.