IIMApiClient class
IIMApiClient.RdProvides the end-to-end queries required to update all details about the live acoustic telemetry system in place
Public fields
base_urlstring containing the base url of the querying API (without the end_point) part
headerslist of HTTP headers
tokenstring to authenticate against the API
Active bindings
base_urlstring containing the base url of the querying API (without the end_point) part
Methods
Method post_data_to_api()
Post a nested list to the database through an API.
Arguments
obja nested list resulting from applying NestedListBuilder
end_pointstring with the name of the end point being queried. Default "tags_with_sensors/"
Method get_from_api()
Make a request to the API and return the data in a json object.
Arguments
end_pointstring with the name of the end point being queried. Default "tags_with_sensors/"
obja nested list resulting from applying NestedListBuilder