tokenizedFetch
Table of Contents

tokenizedFetch🔗

tokenizedFetch(input: RequestInfo | URL , init?: RequestInit ) : Promise< Response >

Fetch wrapper that adds the authentication token to the request. Use this to call the ThoughtSpot APIs when using the visual embed sdk. The interface for this method is the same as Web Fetch.

Function Parameters

input
  • input: RequestInfo | URL

init

Optional

  • init: RequestInit

Returns

Promise< Response >

Version : SDK: 1.28.0

tokenizedFetch("<TS_ORIGIN>/api/rest/2.0/auth/session/user", {
  // .. fetch options ..
});

Defined in : tokenizedFetch.ts