Preparing search index...
The search index is not available
Takaro - v0.0.16
Takaro
@takaro/apiclient
Client
Class Client
Hierarchy
BaseApiClient
<
IApiClientConfig
>
Client
Index
Constructors
constructor
Properties
axios
config
log
token
Accessors
axios
Instance
command
cronjob
discord
event
function
gameserver
hook
item
meta
module
password
player
player
On
Gameserver
role
settings
shop
Listing
shop
Order
stats
user
username
variable
Methods
is
Json
Mime
login
logout
permission
Codes
To
Inputs
set
Header
wait
Until
Healthy
Constructors
constructor
new
Client
(
config
:
IApiClientConfig
)
:
Client
Parameters
config
:
IApiClientConfig
Returns
Client
Properties
Protected
axios
axios
:
AxiosInstance
Protected
Readonly
config
config
:
IApiClientConfig
Protected
log
log
:
Logger
= ...
token
token
:
null
|
string
Accessors
axios
Instance
get
axiosInstance
()
:
AxiosInstance
Returns
AxiosInstance
command
get
command
()
:
CommandApi
Returns
CommandApi
cronjob
get
cronjob
()
:
CronJobApi
Returns
CronJobApi
discord
get
discord
()
:
DiscordApi
Returns
DiscordApi
event
get
event
()
:
EventApi
Returns
EventApi
function
get
function
()
:
FunctionApi
Returns
FunctionApi
gameserver
get
gameserver
()
:
GameServerApi
Returns
GameServerApi
hook
get
hook
()
:
HookApi
Returns
HookApi
item
get
item
()
:
ItemApi
Returns
ItemApi
meta
get
meta
()
:
MetaApi
Returns
MetaApi
module
get
module
()
:
ModuleApi
Returns
ModuleApi
password
set
password
(
password
:
string
)
:
void
Parameters
password
:
string
Returns
void
player
get
player
()
:
PlayerApi
Returns
PlayerApi
player
On
Gameserver
get
playerOnGameserver
()
:
PlayerOnGameServerApi
Returns
PlayerOnGameServerApi
role
get
role
()
:
RoleApi
Returns
RoleApi
settings
get
settings
()
:
SettingsApi
Returns
SettingsApi
shop
Listing
get
shopListing
()
:
ShopListingApi
Returns
ShopListingApi
shop
Order
get
shopOrder
()
:
ShopOrderApi
Returns
ShopOrderApi
stats
get
stats
()
:
StatsApi
Returns
StatsApi
user
get
user
()
:
UserApi
Returns
UserApi
username
set
username
(
username
:
string
)
:
void
Parameters
username
:
string
Returns
void
variable
get
variable
()
:
VariableApi
Returns
VariableApi
Methods
is
Json
Mime
isJsonMime
(
mime
:
string
)
:
mime
is
"application/json"
Parameters
mime
:
string
Returns
mime
is
"application/json"
login
login
()
:
Promise
<
string
>
Returns
Promise
<
string
>
logout
logout
()
:
void
Returns
void
permission
Codes
To
Inputs
permissionCodesToInputs
(
permissions
:
string
[]
,
)
:
Promise
<
{
permissionId
:
string
}
[]
>
Parameters
permissions
:
string
[]
Returns
Promise
<
{
permissionId
:
string
}
[]
>
set
Header
setHeader
(
key
:
string
,
value
:
string
)
:
void
Parameters
key
:
string
value
:
string
Returns
void
wait
Until
Healthy
waitUntilHealthy
(
timeout
?:
number
)
:
Promise
<
void
>
Wait until the API reports that it is healthy
Parameters
timeout
:
number
= 600000
in milliseconds
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
axios
config
log
token
Accessors
axios
Instance
command
cronjob
discord
event
function
gameserver
hook
item
meta
module
password
player
player
On
Gameserver
role
settings
shop
Listing
shop
Order
stats
user
username
variable
Methods
is
Json
Mime
login
logout
permission
Codes
To
Inputs
set
Header
wait
Until
Healthy
Takaro - v0.0.16
Loading...
Wait until the API reports that it is healthy