我在我的 Ruby on Rails 应用程序中使用Evernote gem 。
我正在通过这样做创建一个 NoteStore:
# Construct the URL used to access the user's account
noteStoreUrl = "https://sandbox.evernote.com/edam/note/" + shard_id
noteStoreTransport = Thrift::HTTPClientTransport.new(noteStoreUrl)
noteStoreProtocol = Thrift::BinaryProtocol.new(noteStoreTransport)
noteStore = Evernote::EDAM::NoteStore::NoteStore::Client.new(noteStoreProtocol)
我可以很好地访问用户的笔记。我的问题是,我如何创建一个笔记对象?