Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

Creating an AS3 API interface by hand - need help with findNotes

request

  • Please log in to reply
1 reply to this topic

#1 Richard Haven

Richard Haven

  • Pip
  • Title: Member
  • Group: Members
  • 48 posts

Posted 19 June 2012 - 05:00 PM

In order to debug the problems, I have written an AS3 library interface to the binary protocol. It works.

I have problems getting all the notes for a notebook; I use findNotes and set these fields:


Field.writeFieldToByteArray(requestBody, FIELD_TYPE_STRING, AUTHORIZATION_FIELD_ID, authenticationToken);


Field.writeFieldToByteArray(requestBody, FIELD_TYPE_STRUCT, FILTER_FIELD_ID);

var id : String = passthroughData as String;
Field.writeFieldToByteArray(requestBody, FIELD_TYPE_STRING, NOTEBOOK_GUID_FIELD_ID, id);

Field.writeFieldToByteArray(requestBody, FIELD_TYPE_I32, OFFSET_FIELD_ID, 0);
Field.writeFieldToByteArray(requestBody, FIELD_TYPE_I32, MAX_RESULT_FIELD_ID, 250);


Is this the correct set of binary data ?

#2 Richard Haven

Richard Haven

  • Pip
  • Title: Member
  • Group: Members
  • 48 posts

Posted 22 June 2012 - 11:58 PM

I think this error was because we were using a Basic API key, not an Advanced one





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote