Search
Preparing search index...
The search index is not available
blizzard.js
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
blizzard.js
sc2
SC2
Class SC2
Hierarchy
Blizzard
SC2
Implements
SC2Client
Index
Constructors
constructor
Properties
account
axios
defaults
ladder
league
legacy
Achievements
legacy
Ladder
legacy
Profile
legacy
Rewards
metadata
profile
profile
Ladder
ua
version
Methods
create
Client
Resource
Request
get
Application
Token
get
Client
Resource
prepare
Resource
Request
refresh
Application
Token
set
Application
Token
validate
Application
Token
Constructors
constructor
new SC2
(
args
:
ClientOptions
)
:
SC2
Parameters
args:
ClientOptions
Returns
SC2
Properties
account
account
:
(
args
:
AccountOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
AccountOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
AccountOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
axios
axios
:
AxiosInstance
= ...
defaults
defaults
:
{
key
:
string
;
locale
:
Locales
;
origin
:
Origins
;
secret
:
string
;
token
?:
string
}
Type declaration
key
:
string
locale
:
Locales
origin
:
Origins
secret
:
string
Optional
token
?:
string
ladder
ladder
:
(
args
:
LadderOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
LadderOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
LadderOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
league
league
:
(
args
:
LeagueOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
LeagueOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
LeagueOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
legacy
Achievements
legacy
Achievements
:
(
args
:
LegacyAchievementsOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
LegacyAchievementsOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
LegacyAchievementsOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
legacy
Ladder
legacy
Ladder
:
(
args
:
LegacyLadderOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
LegacyLadderOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
LegacyLadderOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
legacy
Profile
legacy
Profile
:
(
args
:
LegacyProfileOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
LegacyProfileOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
LegacyProfileOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
legacy
Rewards
legacy
Rewards
:
(
args
:
LegacyRewardsOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
LegacyRewardsOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
LegacyRewardsOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
metadata
metadata
:
(
args
:
MetaDataOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
MetaDataOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
MetaDataOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
profile
profile
:
(
args
:
ProfileOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
ProfileOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
ProfileOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
profile
Ladder
profile
Ladder
:
(
args
:
ProfileLadderOptions
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
= ...
Type declaration
(
args
:
ProfileLadderOptions
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
ProfileLadderOptions
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
ua
ua
:
string
= ...
version
version
:
string
= '4.2.0'
Methods
create
Client
Resource
Request
create
Client
Resource
Request
<
T
>
(
fn
:
ResourceInterface
<
T
,
any
>
)
:
(
args
:
T
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
Type parameters
T =
any
Parameters
fn:
ResourceInterface
<
T
,
any
>
Returns
(
args
:
T
, headers
?:
Headers
)
=>
ResourceResponse
<
any
>
(
args
:
T
, headers
?:
Headers
)
:
ResourceResponse
<
any
>
Parameters
args:
T
Optional
headers:
Headers
Returns
ResourceResponse
<
any
>
get
Application
Token
get
Application
Token
(
args
?:
{
key
?:
string
;
origin
?:
string
;
secret
?:
string
}
)
:
Promise
<
AxiosResponse
<
AccessToken
,
any
>
>
Parameters
Optional
args:
{
key
?:
string
;
origin
?:
string
;
secret
?:
string
}
Optional
key
?:
string
Optional
origin
?:
string
Optional
secret
?:
string
Returns
Promise
<
AxiosResponse
<
AccessToken
,
any
>
>
get
Client
Resource
get
Client
Resource
<
T
>
(
url
:
string
, config
?:
AxiosRequestConfig
<
any
>
)
:
Promise
<
AxiosResponse
<
T
,
any
>
>
Type parameters
T
Parameters
url:
string
Optional
config:
AxiosRequestConfig
<
any
>
Returns
Promise
<
AxiosResponse
<
T
,
any
>
>
prepare
Resource
Request
prepare
Resource
Request
(
resource
:
Resource
<
{}
>
, args
?:
Partial
<
ClientOptions
>
, headers
?:
Headers
)
:
[
string
,
AxiosRequestConfig
<
any
>
]
Parameters
resource:
Resource
<
{}
>
Optional
args:
Partial
<
ClientOptions
>
Optional
headers:
Headers
Returns
[
string
,
AxiosRequestConfig
<
any
>
]
refresh
Application
Token
refresh
Application
Token
(
args
?:
{
key
?:
string
;
origin
?:
string
;
secret
?:
string
}
)
:
Promise
<
AxiosResponse
<
AccessToken
,
any
>
>
Parameters
Optional
args:
{
key
?:
string
;
origin
?:
string
;
secret
?:
string
}
Optional
key
?:
string
Optional
origin
?:
string
Optional
secret
?:
string
Returns
Promise
<
AxiosResponse
<
AccessToken
,
any
>
>
set
Application
Token
set
Application
Token
(
token
:
string
)
:
void
Parameters
token:
string
Returns
void
validate
Application
Token
validate
Application
Token
(
args
?:
{
origin
?:
string
;
token
?:
string
}
)
:
Promise
<
AxiosResponse
<
{
authorities
:
{
authority
:
string
}
[]
;
client_id
:
string
;
exp
:
number
;
scope
?:
string
[]
}
,
any
>
>
Parameters
Optional
args:
{
origin
?:
string
;
token
?:
string
}
Optional
origin
?:
string
Optional
token
?:
string
Returns
Promise
<
AxiosResponse
<
{
authorities
:
{
authority
:
string
}
[]
;
client_id
:
string
;
exp
:
number
;
scope
?:
string
[]
}
,
any
>
>
Exports
core
d3
hs
sc2
wow
SC2
constructor
account
axios
defaults
ladder
league
legacy
Achievements
legacy
Ladder
legacy
Profile
legacy
Rewards
metadata
profile
profile
Ladder
ua
version
create
Client
Resource
Request
get
Application
Token
get
Client
Resource
prepare
Resource
Request
refresh
Application
Token
set
Application
Token
validate
Application
Token
Generated using
TypeDoc