@seven.io/client
Preparing search index...
Client
Class Client
Index
Constructors
constructor
Properties
options
BASE_
URL
CONTENT_
TYPE_
URLENCODED
Methods
request
Constructors
constructor
new
Client
(
options
:
ClientOptions
)
:
Client
Parameters
options
:
ClientOptions
Returns
Client
Properties
Protected
options
options
:
ClientOptions
Static
Readonly
BASE_
URL
BASE_URL
:
"https://gateway.seven.io/api"
= 'https://gateway.seven.io/api'
Static
Readonly
CONTENT_
TYPE_
URLENCODED
CONTENT_TYPE_URLENCODED
:
"application/x-www-form-urlencoded"
= 'application/x-www-form-urlencoded'
Methods
request
request
<
R
extends
unknown
,
P
extends
{
[
p
:
string
]:
any
}
=
{}
>
(
method
:
"delete"
|
"get"
|
"post"
|
"patch"
,
endpoint
:
string
,
payload
:
P
,
contentType
?:
string
,
)
:
Promise
<
R
>
Type Parameters
R
extends
unknown
P
extends
{
[
p
:
string
]:
any
}
=
{}
Parameters
method
:
"delete"
|
"get"
|
"post"
|
"patch"
endpoint
:
string
payload
:
P
contentType
:
string
= 'application/json'
Returns
Promise
<
R
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
options
BASE_
URL
CONTENT_
TYPE_
URLENCODED
Methods
request
@seven.io/client
Loading...