QuiverNote
Unofficial ruby interface for HappenApps quiver
Installation
Add this line to your application's Gemfile:
gem 'quiver_note'
And then execute:
$ bundle
Or install it yourself as:
$ gem install quiver_note
Usage
example1: Read via dropbox
root = Quiver.dropbox('/Quiver.qvlibrary', dropbox_access_token)
inbox = root.nobebook('inbox')
inbox.each do |note|
puts note.title
end
example2: Write to local storage
root = Quiver.local('/home/kuboon/documents/Quiver.qvlibrary')
notebook = root.notebook('blog')
Entry.find_each do |entry|
title = entry.title
content = {title: title, cells: [{type: :markdown, data: get_markdown(entry)}]}
note = Quiver::Note.new(content: content, meta: {title: title, created_at: entry.created_at.to_i, updated_at: entry.updated_at.to_i})
notebook.add(note)
end
Contributing
- Fork it ( https://github.com/[my-github-username]/quiver/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request