Sari la conținut

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.

Poză

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

request

  • Please log in to reply
1 răspunsuri la acest topic

#1 Richard Haven

Richard Haven

  • Punct
  • Title: Member
  • Group: Members
  • 48 posturi

Postat 19 iunie 2012 - 05:00

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

  • Punct
  • Title: Member
  • Group: Members
  • 48 posturi

Postat 22 iunie 2012 - 11:58

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





1 utilizatori citesc acest topic

0 membrii, 1 vizitatori, 0 utilizatori anonimi

Clip to Evernote