Method: Evernote_utils.userStore
- Defined in:
- lib/evernote-utils.rb
.userStore ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/evernote-utils.rb', line 94 def self.userStore if @@userStore == nil # Initial development is performed on our sandbox server. To use the production # service, change "sandbox.evernote.com" to "www.evernote.com" and replace your # developer token above with a token from # https://www.evernote.com/api/DeveloperToken.action evernoteHost = SANDBOX ? "sandbox.evernote.com" : "www.evernote.com" userStoreUrl = "https://#{evernoteHost}/edam/user" userStoreTransport = Thrift::HTTPClientTransport.new(userStoreUrl) userStoreProtocol = Thrift::BinaryProtocol.new(userStoreTransport) @@userStore = Evernote::EDAM::UserStore::UserStore::Client.new(userStoreProtocol) end return @@userStore end |