ShareKit icon indicating copy to clipboard operation
ShareKit copied to clipboard

Evernote

Open ideashower opened this issue 15 years ago • 11 comments

Add an Evernote sharer

ideashower avatar Jul 06 '10 21:07 ideashower

I pushed to my fork http://github.com/ngs/ShareKit

ngs avatar Oct 07 '10 18:10 ngs

Has anyone been able to get Evernote to successfully work?

Signed up, got api keys etc... and all I get every time is a login error "your username and password did not match"

bluesuedesw avatar May 12 '11 03:05 bluesuedesw

Did you use a correct Sandbox account ? https://sandbox.evernote.com/ It isn't same as the production account.

ngs avatar May 12 '11 09:05 ngs

Hi ngs, I tried both a sandbox and production login with the same results.

My values for SHKEvernoteUserStoreURL and SHKEvernoteNetStoreURLBase are both empty. Might I need to have something entered there?

bluesuedesw avatar May 12 '11 18:05 bluesuedesw

Yes, you need to set API URLs in the header file.

// Sandbox
#define SHKEvernoteUserStoreURL    @"https://sandbox.evernote.com/edam/user"
#define SHKEvernoteNetStoreURLBase @"http://sandbox.evernote.com/edam/note/"

// Or production
#define SHKEvernoteUserStoreURL    @"https://www.evernote.com/edam/user"
#define SHKEvernoteNetStoreURLBase @"http://www.evernote.com/edam/note/"

ngs avatar May 14 '11 04:05 ngs

Thank you for the help! I finally got it all sorted out. I'll share some tips for anyone else embarking on Sharekit Evernote support...

Do use the URL's ngs posts above in your SHKConfig.h, along the ConsumerKey and SecretKey that you get when registering with Evernote. Make sure you request a ClientKey (not the web one). Once you confirm that everything works with a sandbox account, you then need to email Evernote with a developer support request for them to enable your ConsumerKey to work on the live production servers. Without this critical last step it wont work ;)

bluesuedesw avatar May 14 '11 20:05 bluesuedesw

I'm getting the same invalid user/password errors. I've tried leaving the StoreURLs empty, with sandbox info, and production info. No change. Hrm.

memmons avatar Jul 18 '11 19:07 memmons

I'm assuming this may be some issue on Evernote's part. In the meantime, I wanted to suggest this change to the Evernote section of the config which always uses the sandbox for debug builds:

#ifdef DEBUG 
    #define SHKEvernoteUserStoreURL @"https://sandbox.evernote.com/edam/user"
    #define SHKEvernoteNetStoreURLBase @"http://sandbox.evernote.com/edam/note/"
#else
    #define SHKEvernoteUserStoreURL @"https://www.evernote.com/edam/user"
    #define SHKEvernoteNetStoreURLBase @"http://www.evernote.com/edam/note/"
#endif

memmons avatar Jul 18 '11 20:07 memmons

I've had Evernote setup and working in my app for some time, but have been getting a few error reports from users when saving some articles (mostly web links). Error occurs when attempting to save and reports: Something about a reference to "utm_medium: must end with the ';' delimiter.

screenshot: http://i.imgur.com/ugmIW.png

bluesuedesw avatar Sep 06 '11 16:09 bluesuedesw

Sorry, It's a potential bug.

The error will occur when the URL or the title contain unescaped HTML entities.

It should be escaped in SHKEvernote.m.

ngs avatar Sep 06 '11 17:09 ngs

I had the can't sign-in issue too. #defines correct and IO have a Evernote account

When updating to using the Evernote folder from the ngs pull I received an kEvernoteNetStoreURLBase not defined error

Any ideas?

(Tried using the whole pull but it threw more errors/warnings) Enumeration values 'SHKFormFieldTypeText', 'SHKFormFieldTypeTextNoCorrect', and 'SHKFormFieldTypePassword' not handled in switch

julianfe avatar Mar 15 '12 05:03 julianfe