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

Getting http response 302 at getNoteStoreUrl (Android)


  • Please log in to reply
1 reply to this topic

#1 User2012

User2012

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

Posted 07 July 2012 - 03:12 PM

I am using the developer token method of accessing my sandbox account. But I keep getting an http error 302.

TBinaryProtocol userStoreProt;
try {
userStoreProt = new TBinaryProtocol(new THttpClient(USER_STORE_URL));
UserStore.Client userStore = new UserStore.Client(userStoreProt, userStoreProt);
String notestoreUrl = userStore.getNoteStoreUrl(DEVELOPER_TOKEN); <<<< error generated here

// Set up the NoteStore client
THttpClient noteStoreTrans;
noteStoreTrans = new THttpClient(notestoreUrl);

I can log into my sandbox account fine using a browser, and I think I have the right userstoreurl:
private static final String USER_STORE_URL = "https://sandbox.evernote.com/edam/(my user name)";

What else should I be checking?

#2 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 407 posts

Posted 09 July 2012 - 07:43 PM

The URL you are using for the UserStore is incorrect. Change it to: https://sandbox.evernote.com/edam/user




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote