URL string describing the data location
Options
Static _allStatic apiStatic authAuth Provider to use. This is only relevant for OAuthBackend, but specifying here as Backend is the only class users import.
Static capabilitiesStatic defaultStatic defaultStatic hooksStatic oStatic phrasesStatic scopesStatic urlsStatic useStatic userStatic userStatic allStatic authservices.json from the auth provider will be cached here. You could also set this manually to avoid the network request.
Static hostReturn the hostname of the first URL pattern in the urls array, if not variable.
This is used to facilitate relative URLs when constructing Backends directly.
Subclasses with variable hostnames can override this.
Static oStatic titleStatic tokenPrivate #getPrivate #getHigher-level method for reading data from the backend. Subclasses should usually NOT override this method.
URL to fetch, if different from that provided in the constructor
Rest ...args: any[]null if not foundHelper for making OAuth requests with JSON-based APIs.
API endpoint
Optional data: anyData to send with the request
Optional method: string = "GET"HTTP method
Optional req: { Extra request options
Extra headers
Response type
Sync the logged in user, i.e. log in passively when another backend has logged in and log out when another backend has logged out. Generally intended to be used for backends with the same authentication mechanism. Syncing is not two-way, you need to call this on the other backend as well to make it so.
Static Private #fromTransform an array of objects to an array of arrays.
A map between column indices and object keys.
An array of objects. Each object corresponds to an individual spreadsheet row.
An array of arrays. Each nested array corresponds to an individual spreadsheet row.
Static Private #getStatic Private #toTransform an array of arrays to an array of objects.
A map between column indices and object keys.
An array of values from a spreadsheet. Each nested array corresponds to an individual spreadsheet row.
An array of objects. Each object corresponds to an individual spreadsheet row.
Static findStatic fromStatic getOAuthStatic keysStatic loadStatic parseURLStatic phraseStatic registerStatic testGenerated using TypeDoc
Google Sheets backend.