I'm developing a Windows client for some integration with Evernote desktop. In particular, I need to build locale (in-app) 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 will authenticate to Evernote by an API key, as follows:
ENSessionAdvanced.SetSharedSessionConsumerKey("key", "secret");
if (!ENSessionAdvanced.SharedSession.IsAuthenticated)
ENSessionAdvanced.SharedSession.AuthenticateToEvernote();
From there, I could get notebooks and notes, and everything, but no idea of where to get userId and shardId. Help!