An interface to the Echo VR API
Parameters: base_url – The base URL used to communicate with the Echo VR API
GameStateobject representing the state of the current game session as presented by the API.
- requests.exceptions.ConnectionError – This exception will be thrown if the API is unavaible. This might indicate that the user is not currently in a match, or that they didn’t launch Echo VR with the -http option.
- json.decoder.JSONDecodeError – This exception will be thrown if the data returned by the API is not valid JSON. Likely indicates a bug in Echo VR or in this library.
Fetch the raw JSON game state data from EchoVR’s
This method could be useful if you want to retrieve some API data not directly exposed by this Python wrapper. Otherwise, you should probably use
An object (probably a
dict) representing the raw JSON response returned by the EchoVR client.
DEFAULT_API= <echovr_api.api.API object>¶
An instance of API, with the default base URL.
fetch_state= <bound method API.fetch_state of <echovr_api.api.API object>>¶
Shortcut for calling fetch_state on DEFAULT_API
fetch_state_data= <bound method API.fetch_state_data of <echovr_api.api.API object>>¶
Shortcut for calling fetch_state_data on DEFAULT_API