invisigoth99
Forum Replies Created
-
Forum: Plugins
In reply to: [Mendeley Plugin] Plugin not working?Hi Michael,
Seems to be the case that the plugin doesn’t handle the case of a single tag properly – simply changing the code to:
case "tag": case "tags": $tag_arr = $doc->tags; if (is_array($tag_arr)) { $ismatch = 0; for($i = 0; $i < sizeof($tag_arr); ++$i) { if (!(stristr($tag_arr[$i], $filterval) === FALSE)) { $ismatch = 1; } } } else { if (!(stristr($tag_arr, $filterval) === FALSE)) { $ismatch = 1; } } if ($ismatch == 0) { return 0; } break;
does the trick. Happy to attempt to make the changes via code.google.com, but I don’t know if you support more contributors. Will also look into the groups/folders type, as it appears that the API supports requests resembling your previous “own” type (via the documents API, empty group_id and setting authored=true).
Thanks.
Forum: Plugins
In reply to: [Mendeley Plugin] Plugin not working?Hi – I’ve now learned that I have to edit all the ways in which I access my plugin, so something like [mendeley type=”own”] won’t work.
I’ve managed to almost get it to work as it did before, however – filtering by tag does not work. So filter=”tag=xxx” does not seem to do the trick, the plugin doesn’t crash, but the filtering somehow does not seem to happen. Could you let me know if the syntax is wrong?
Forum: Plugins
In reply to: [Mendeley Plugin] Plugin not working?Final bit of information – for the request:
[mendeley type=”own”]
the debug information shown is:
https://api.mendeley.com/documents?group_id=0&view=all&order=desc&sort=created&limit=500
I’ve managed to perform the group_id query myself by manually adding the required access_code tag, but this information is empty. So the problem seems to be:
* I don’t have any groups in my Mendeley profile – how do I add them, and is this required?
* The access code doesn’t seem to be added to the request – or perhaps this is something that is simply not shown in the debug information, in which case this is a red herring.Thanks.
Forum: Plugins
In reply to: [Mendeley Plugin] Plugin not working?Some additional information – when I press “Request and authorize access token” all is fine, but when I then press “Update settings” the message at the top is:
Failed retrieving OAuth2 access token: {“error”:”invalid_grant”,”error_description”:”Invalid access code”}
so something seems to be going wrong here…
Thanks.
Forum: Plugins
In reply to: [Mendeley Plugin] Plugin not working?I’ve read readme.txt and it says I have to find out the uuid’s via “Request collection ids”. This unfortunately gives the output below.
It appears that it is not sending the right request (i.e. without an authorisation code). Any ideas?Request: https://api.mendeley.com/groups/?limit=500
Response: HTTP/1.1 200 OK Content-Type: application/vnd.mendeley-group.1+json Date: Sat, 27 Dec 2014 08:15:07 GMT Vary: Accept-Encoding Vary: Accept-Encoding X-Mendeley-Trace-Id: 776m4nyv47c Content-Length: 2 Connection: keep-alive []
Groups
Request: https://api.mendeley.com/folders/?limits=500
Response: HTTP/1.1 200 OK Content-Type: application/vnd.mendeley-folder.1+json Date: Sat, 27 Dec 2014 08:15:08 GMT Vary: Accept-Encoding Vary: Accept-Encoding X-Mendeley-Trace-Id: RdtHZHU6GtM Content-Length: 2 Connection: keep-alive []
Folders
Forum: Plugins
In reply to: [Mendeley Plugin] genre does not get displayed in pluginThanks – any idea when the new API will be out?