Jump to content
Due to limited holiday staffing, chat will be unavailable from Thursday, July 2 at 5:30 PM (CDT) to Monday, July 13 at 8 AM (CDT). This will allow us to reply to your email requests as quickly as possible. Thank you for understanding. ×
Vico

How to obtain UserId and ShardId in C#

Recommended Posts

I'm developing a Windows client for some integration with Evernote desktop. In particular, I need to build locale links to notes, which requires the userId and shardId (evernote:///view/[userId]/[shardId]/[noteGuid]/[noteGuid]/). Problem is, I don't find how to programmatically get userId and shardId. I need to use ENSessionAdvanced instead of ENSession, and I authenticate to Evernote by an API key, as follows:

ENSessionAdvanced.SetSharedSessionConsumerKey("key", "secret");
if (!ENSessionAdvanced.SharedSession.IsAuthenticated)
    ENSessionAdvanced.SharedSession.AuthenticateToEvernote();

From there, I can get notebooks and notes, and everything, but no idea of where to get userId and shardId. Help!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...