MCPcopy Index your code
hub / github.com/simstudioai/sim / getNoteStoreUrl

Function getNoteStoreUrl

apps/sim/app/api/tools/evernote/lib/client.ts:73–77  ·  view source on GitHub ↗

Get the NoteStore URL for the given token

(token: string)

Source from the content-addressed store, hash-verified

71
72/** Get the NoteStore URL for the given token */
73function getNoteStoreUrl(token: string): string {
74 const shardId = extractShardId(token)
75 const host = token.includes(':Sandbox') ? 'sandbox.evernote.com' : 'www.evernote.com'
76 return `https://${host}/shard/${shardId}/notestore`
77}
78
79/** Make a Thrift RPC call to the NoteStore */
80async function callNoteStore(token: string, writer: ThriftWriter): Promise<ThriftReader> {

Callers 1

callNoteStoreFunction · 0.70

Calls 1

extractShardIdFunction · 0.70

Tested by

no test coverage detected