* Returns the Evernote API host based on the token type. * Sandbox tokens contain `:Sandbox` and route to sandbox.evernote.com.
(token: string)
| 47 | * Sandbox tokens contain `:Sandbox` and route to sandbox.evernote.com. |
| 48 | */ |
| 49 | function 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. |
no outgoing calls
no test coverage detected