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

Function getHost

apps/sim/connectors/evernote/evernote.ts:49–51  ·  view source on GitHub ↗

* Returns the Evernote API host based on the token type. * Sandbox tokens contain `:Sandbox` and route to sandbox.evernote.com.

(token: string)

Source from the content-addressed store, hash-verified

47 * Sandbox tokens contain `:Sandbox` and route to sandbox.evernote.com.
48 */
49function getHost(token: string): string {
50 return token.includes(':Sandbox') ? 'sandbox.evernote.com' : 'www.evernote.com'
51}
52
53/**
54 * Derives the NoteStore URL from a developer token.

Callers 2

getNoteStoreUrlFunction · 0.85
evernote.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected