Jump to content

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)

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

Link to comment

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...