class ActiveDiigo::Request
Constants
- API_VERSION
Public Class Methods
new(uname, password)
click to toggle source
# File lib/active_diigo/request.rb, line 31 def initialize(uname, password) self.class.basic_auth uname, password end
Public Instance Methods
bookmarks(options = {})
click to toggle source
# File lib/active_diigo/request.rb, line 35 def bookmarks(options = {}) options.merge!({:key => ActiveDiigo.api_key}) self.class.get('/bookmarks', {:query => options}) end
save(options = {})
click to toggle source
# File lib/active_diigo/request.rb, line 40 def save(options = {}) options.merge!({:key => ActiveDiigo.api_key}) self.class.post('/bookmarks', {:body => options}) end