Get the NoteStore URL for the given token
(token: string)
| 71 | |
| 72 | /** Get the NoteStore URL for the given token */ |
| 73 | function 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 */ |
| 80 | async function callNoteStore(token: string, writer: ThriftWriter): Promise<ThriftReader> { |
no test coverage detected