FIO
FIO class to access game data through FIO REST API endpoints
FIO
FIO API wrapper class
Attributes:
| Name | Type | Description | 
|---|---|---|
| Building | Building | Building information | 
| Exchange | Exchange | Exchange information | 
| Group | Group | Group information | 
| LocalMarket | LocalMarket | LocalMarket information | 
| Material | Material | Material information | 
| Planet | Planet | Planet information | 
| Recipe | Recipe | Recipe information | 
| Sites | Sites | Sites information | 
| Storage | Storage | Storage information | 
| config | Config | FIO Configuration | 
| adapter | FIOAdapter | FIO Adapter | 
| urls | URLs | FIO URLs | 
Initializes the FIO wrapper
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| version | str | FIO API version. Defaults to None. | None | 
| application | str | Application name. Defaults to None. | None | 
| api_key | str | FIO API-Key. Defaults to None. | None | 
| base_url | str | FIO base url. Defaults to None. | None | 
| timeout | float | Request timeout. Defaults to None. | None | 
| ssl_verify | bool | Verify https connection. Defaults to True. | True | 
| config | Optional[str] | (str, optional): User specified configuration file. Defaults to None. | None | 
Raises:
| Type | Description | 
|---|---|
| EndpointNotImplemented | description | 
Source code in fio_wrapper/fio.py
                  
          config
  
  
      instance-attribute
  
          adapter
  
  
      instance-attribute
  
  
          LocalMarket
  
  
      instance-attribute
  
  get_header
Creates the header to be included in calls towards FIO
Returns:
| Type | Description | 
|---|---|
| Dict[str, str] | Dict[str, str]: Contains "Authorization" and "X-FIO-Application" |