Search
Preparing search index...
The search index is not available
@jeffe/tankille
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Client
Class Client
Hierarchy
Client
Index
Constructors
constructor
Properties
refresh
Token
token
Methods
#auth
#get
Refresh
Token
#get
Session
Token
get
Station
get
Stations
get
Stations
ByLocation
login
Object literals
headers
options
token
Cache
Constructors
constructor
new
Client
(
options
?:
ClientOptions
)
:
Client
Parameters
Optional
options:
ClientOptions
Returns
Client
Properties
Private
refresh
Token
refresh
Token
:
string
= ""
Private
token
token
:
string
= ""
Methods
Private
#auth
#auth
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Private
#get
Refresh
Token
#get
Refresh
Token
(
loginOptions
:
LoginOptions
)
:
Promise
<
RefreshToken
>
Parameters
loginOptions:
LoginOptions
Returns
Promise
<
RefreshToken
>
Private
#get
Session
Token
#get
Session
Token
(
__namedParameters
:
{
refreshToken
:
string
}
)
:
Promise
<
string
>
Parameters
__namedParameters:
{
refreshToken
:
string
}
refresh
Token
:
string
Returns
Promise
<
string
>
get
Station
get
Station
(
stationId
:
string
, date
?:
Duration
)
:
Promise
<
Asema
>
Parameters
stationId:
string
Default value
date:
Duration
= { days: 14 }
Returns
Promise
<
Asema
>
get
Stations
get
Stations
(
)
:
Promise
<
Asema
[]
>
Returns
Promise
<
Asema
[]
>
get
Stations
ByLocation
get
Stations
ByLocation
(
location
:
{
lat
:
number
;
lon
:
number
}
, distance
?:
number
)
:
Promise
<
Asema
[]
>
Parameters
location:
{
lat
:
number
;
lon
:
number
}
lat
:
number
lon
:
number
Default value
distance:
number
= 15000
Returns
Promise
<
Asema
[]
>
login
login
(
loginOptions
:
LoginOptions
)
:
Promise
<
string
>
Parameters
loginOptions:
LoginOptions
Returns
Promise
<
string
>
Object literals
Private
headers
headers
:
object
Content-
Type
Content-
Type
:
string
= "application/json"
Host
Host
:
string
= "api.tankille.fi"
User-
Agent
User-
Agent
:
string
= "FuelFellow/3.6.2 (Android SDK built for x86_64; Android 9)"
Private
options
options
:
object
device
device
:
string
= "Android SDK built for x86_64 (03280ceb8a5367a6)"
user
Agent
user
Agent
:
string
= "FuelFellow/3.6.2 (Android SDK built for x86_64; Android 9)"
token
Cache
token
Cache
:
object
data
data
:
any
= <any>{}
last
Fetch
last
Fetch
:
number
= 0
Globals
Client
constructor
refresh
Token
token
#auth
#get
Refresh
Token
#get
Session
Token
get
Station
get
Stations
get
Stations
ByLocation
login
headers
options
token
Cache
Asema
Asema
Hinta
Asema
Location
Asema
Osoite
Access
Cache
Client
Options
Fuels
Login
Options
Refresh
Token
API_
URL
axios
Generated using
TypeDoc