0

RubyonRailsアプリでEvernotegemを使用しています。

私はこれを行うことによって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)

ユーザーのメモに問題なくアクセスできます。私の質問は、メモオブジェクトを作成するにはどうすればよいですか?

4

1 に答える 1

2

電話してみてください:

note = Evernote::EDAM::Type::Note.new()
note.title = "Test note from ENTest.rb"
note.content = '<?xml version="1.0" encoding="UTF-8"?>' +
  '<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">' +
  '<en-note>Here is the Evernote logo:<br/>'
createdNote = noteStore.createNote(authToken, note)

evernote の公式 Ruby アプリでは、それがノートの作成方法です。

于 2011-06-16T00:52:22.883 に答える