Search
Preparing search index...
The search index is not available
Cumulocity Web SDK
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
FetchClient
Class FetchClient
Hierarchy
FetchClient
Implements
IFetchClient
Index
Constructors
constructor
Properties
base
Url
default
Headers
tenant
Methods
fetch
get
Cometd
Handshake
get
Fetch
Options
get
Url
set
Auth
Constructors
constructor
new
Fetch
Client
(
authOrBaseUrl
?:
IAuthentication
|
string
, baseUrl
?:
string
)
:
FetchClient
Parameters
Optional
authOrBaseUrl:
IAuthentication
|
string
Optional
baseUrl:
string
Returns
FetchClient
Properties
Optional
base
Url
base
Url
:
string
default
Headers
default
Headers
:
object
Type declaration
tenant
tenant
:
string
= ""
Methods
fetch
fetch
(
url
:
string
, init
?:
IFetchOptions
)
:
Promise
<
IFetchResponse
>
Parameters
url:
string
Optional
init:
IFetchOptions
Returns
Promise
<
IFetchResponse
>
get
Cometd
Handshake
get
Cometd
Handshake
(
config
?:
any
)
:
any
Parameters
Default value
config:
any
= {}
Returns
any
get
Fetch
Options
get
Fetch
Options
(
options
?:
IFetchOptions
)
:
IFetchOptions
Parameters
Default value
options:
IFetchOptions
= {}
Returns
IFetchOptions
get
Url
get
Url
(
url
?:
string
, options
?:
IFetchOptions
)
:
string
Parameters
Default value
url:
string
= ""
Optional
options:
IFetchOptions
Returns
string
set
Auth
set
Auth
(
auth
:
IAuthentication
)
:
void
Parameters
auth:
IAuthentication
Returns
void
Globals
Fetch
Client
constructor
base
Url
default
Headers
tenant
fetch
get
Cometd
Handshake
get
Fetch
Options
get
Url
set
Auth
Generated using
TypeDoc