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

Function extractShardId

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

Extract shard ID from an Evernote developer token

(token: string)

Source from the content-addressed store, hash-verified

62
63/** Extract shard ID from an Evernote developer token */
64function extractShardId(token: string): string {
65 const match = token.match(/S=s(\d+)/)
66 if (!match) {
67 throw new Error('Invalid Evernote token format: cannot extract shard ID')
68 }
69 return `s${match[1]}`
70}
71
72/** Get the NoteStore URL for the given token */
73function getNoteStoreUrl(token: string): string {

Callers 1

getNoteStoreUrlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected