Sites
Exposes FIO Sites data for users, either as whole site data or warehouses. All Sites data requires a FIO API KEY. You will need to have access to the data the user has in FIO in order to access it.
Example
Endpoints
Access site information from FIO.
Sites
Bases: AbstractSites
, AbstractEndpoint
get
Gets site data for given username from FIO
Note
FIO API Key Required
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
Prosperous Universe username |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
NoSiteData
|
Username has no site data |
NotAuthenticated
|
Not authenticated or no appropiate permissions |
Returns:
Type | Description |
---|---|
SiteList
|
Site | SiteList: Site or List of Sites |
Source code in fio_wrapper/endpoints/endpoints_v1/sites.py
get_planet
Gets site data for given username and planet from FIO
Note
FIO API Key Required
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
Prosperous Universe username |
required |
planet |
str
|
PlanetId, PlanetNaturalId or PlanetName. Defaults to None. |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
NoSiteData
|
Username has no site data |
NotAuthenticated
|
Not authenticated or no appropiate permissions |
Returns:
Name | Type | Description |
---|---|---|
Site |
Site
|
Site |
Source code in fio_wrapper/endpoints/endpoints_v1/sites.py
planets
Gets a list of SiteIds from FIO for given username
Note
FIO API Key Required
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
Prosperous Universe username |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
NoSiteData
|
Username has no site data |
NotAuthenticated
|
Not authenticated or no appropiate permissions |
Returns:
Type | Description |
---|---|
List[str]
|
List[str]: List of SiteIds |
Source code in fio_wrapper/endpoints/endpoints_v1/sites.py
warehouses
Get warehouse data for username from FIO
Note
FIO API Key Required
Parameters:
Name | Type | Description | Default |
---|---|---|---|
username |
str
|
Prosperous Universe username |
required |
timeout |
float
|
Request timeout in seconds. Defaults to None. |
None
|
Raises:
Type | Description |
---|---|
NoSiteData
|
Username has no warehouse site data |
NotAuthenticated
|
Not authenticated or no appropiate permissions |
Returns:
Name | Type | Description |
---|---|---|
WarehouseList |
WarehouseList
|
List of Warehouses |