cboettig / labnotebook

:notebook: Source code and version history for my online lab notebook
http://www.carlboettiger.info
Creative Commons Zero v1.0 Universal
98 stars 61 forks source link

Mendeley feed using Mendeley API #79

Closed cboettig closed 10 years ago

cboettig commented 11 years ago

The mendeley plugin would be much better if based off the API instead of public group RSS feeds. In particular, it would let me draw the reading list from the private folders or tags, rather than the more coarse-grained public groups.

Unfortunately, it doesn't seem like there is a decent Mendeley gem on Github, at any rate.
https://github.com/rweald/mendeley hasn't been updated in years and has no private methods.

cboettig commented 11 years ago

See http://blog.shazino.com/articles/dev/mendeley-api-in-ruby/ for some convient examples of how to handle authenticated calls.

cboettig commented 11 years ago

Okay, tried two different approaches, including the one above, and I'm stuck. See my SO question for details.

http://stackoverflow.com/questions/15887366/ruby-obtain-oauth-token-from-mendeley-api

cboettig commented 11 years ago

Mostly implemented. Only way to get most recent pubs in a folder is to download each article with a unique API call, and then sort / subset by date published. Kinda ridiculous. Should be fixed in a few months with v2.0 of the API... See https://github.com/cboettig/labnotebook/blob/mendeley-plugin/_plugins/jekyll-labnotebook-plugins/mendeley.rb (mendeley.rb on mendeley-plugin branch)

cboettig commented 10 years ago

Done, though need to migrate a few feeds away from the rss solution (see #106 ) Downside that the rss based approach obviously had more modular public utility / motivated me to maintain public groups.