IIMApiClient class
IIMApiClient.Rd
Provides the end-to-end queries required to update all details about the live acoustic telemetry system in place
Public fields
base_url
string containing the base url of the querying API (without the end_point) part
headers
list of HTTP headers
token
string to authenticate against the API
Active bindings
base_url
string 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
obj
a nested list resulting from applying NestedListBuilder
end_point
string 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_point
string with the name of the end point being queried. Default "tags_with_sensors/"
obj
a nested list resulting from applying NestedListBuilder