我正在使用rubys-sdk EvernoteOAuth::Client
在Evernote上创建笔记。
创建笔记时,我创建了2个附加到其中的资源:
创建后,从API检索的笔记资源如下所示:
resources:[<Evernote::EDAM::Type::Resource guid:"some_guid", noteGuid:"some_guid", data:<Evernote::EDAM::Type::Data bodyHash:4285399715c412b4b67cbb5d34940974, size:1893612>, mime:"image/png", width:855, height:855, active:true, recognition:<Evernote::EDAM::Type::Data bodyHash:70294467148c7182dc454dbf66e97f19, size:11763>, attributes:<Evernote::EDAM::Type::ResourceAttributes >, updateSequenceNum:7565>, <Evernote::EDAM::Type::Resource guid:"some_guid", noteGuid:"some_guid", data:<Evernote::EDAM::Type::Data bodyHash:b830d7e35b9c6f43bd221be823f7e438, size:16173>, mime:"image/jpeg", width:302, height:75, active:true, recognition:<Evernote::EDAM::Type::Data bodyHash:38fc6770507b0d1c26625a86b7ea503a, size:525>, attributes:<Evernote::EDAM::Type::ResourceAttributes fileName:"logo.jpg">, updateSequenceNum:7564>]
缩略图显示正确,但是一旦我打开Evernote客户端的注释,在这种情况下OSX客户端(问题与iOS版本相同),并且注释得到同步,第一个资源获得删除并且徽标变为缩略图,副作用是徽标未优化为缩略图。 打开并自动同步注释后的资源列表:
resources:[<Evernote::EDAM::Type::Resource guid:"some_guid", noteGuid:"some_guid", data:<Evernote::EDAM::Type::Data bodyHash:b830d7e35b9c6f43bd221be823f7e438, size:16173>, mime:"image/jpeg", width:302, height:75, active:true, recognition:<Evernote::EDAM::Type::Data bodyHash:38fc6770507b0d1c26625a86b7ea503a, size:525>, attributes:<Evernote::EDAM::Type::ResourceAttributes fileName:"logo.jpg">, updateSequenceNum:7567>]
如何在备注更新时避免资源被删除? 如何指定不应将资源用作缩略图?