Module: EvernoteOAuth::BusinessNoteStore
- Includes:
- UserStore
- Included in:
- BusinessUtils, Client
- Defined in:
- lib/evernote_oauth/business_note_store.rb
Defined Under Namespace
Classes: Store
Instance Method Summary collapse
-
#business_note_store(options = {}) ⇒ EvernoteOAuth::BusinessNoteStore::Store
Returns note_store for a business account.
Methods included from UserStore
Instance Method Details
#business_note_store(options = {}) ⇒ EvernoteOAuth::BusinessNoteStore::Store
Returns note_store for a business account
9 10 11 12 13 14 15 16 17 |
# File 'lib/evernote_oauth/business_note_store.rb', line 9 def business_note_store(={}) auth = user_store.authenticateToBusiness([:token] || @token) EvernoteOAuth::BusinessNoteStore::Store.new( token: auth.authenticationToken, client: thrift_client(::Evernote::EDAM::NoteStore::NoteStore::Client, auth.noteStoreUrl), user: auth.user ) end |