tune_reporting.base.service package¶
Submodules¶
tune_reporting.base.service.client module¶
TUNE Management Client¶
-
class
tune_reporting.base.service.client.TuneManagementClient(controller, action, auth_key, auth_type, query_string_dict=None, api_url_endpoint='https://api.mobileapptracking.com', api_url_version='v2')[source]¶ Bases:
objectTUNE MobileAppTracking Management API access class.
The constructor.
Parameters: - controller (str) – TUNE Management API endpoint name.
- action (str) – TUNE Management API endpoint’s action name.
- auth_key (str) – TUNE Reporting authentication key.
- auth_type (str) – TUNE Reporting authentication type.
- query_string_dict (array) – Action’s query string parameters.
- api_url_endpoint (str) – TUNE Management API endpoint path.
- api_url_version (str) – TUNE Management API version.
-
request¶ Property get request object.
-
response¶ Property get response object.
tune_reporting.base.service.proxy module¶
TUNE Management API Service Proxy¶
-
class
tune_reporting.base.service.proxy.TuneManagementProxy(request_url)[source]¶ Bases:
objectService proxy class for connecting to TUNE Management API service.
The constructor
Parameters: request_url (str) – -
execute()[source]¶ HTTP POST request to TUNE MobileAppTracking Management API.
- Returns:
- bool: True upon success.
-
response¶ Full response object to TUNE Management API service.
-
tune_reporting.base.service.query_string_builder module¶
TUNE Management API Query String Builder¶
-
class
tune_reporting.base.service.query_string_builder.QueryStringBuilder(name=None, value=None)[source]¶ Bases:
objectBuild Query String provide with dictionary of query parameters.
Constructor a query string builder. :param name (str, optional): query string parameter’s key. :param value (str, optional): query string parameter’s value.
tune_reporting.base.service.request module¶
TUNE Management API Request¶
-
class
tune_reporting.base.service.request.TuneManagementRequest(controller, action, auth_key, auth_type, query_string_dict, api_url_endpoint, api_url_version)[source]¶ Bases:
objectBase components for every TUNE Management API request.
The constructor.
Parameters: - :param str auth_key TUNE Reporting authentication
- key.
- :param str auth_type TUNE Reporting authentication
- type.
Parameters: -
action¶ TUNE Management API action.
-
auth_key¶ TUNE Reporting authentication key.
-
auth_type¶ TUNE Reporting authentication type.
-
controller¶ TUNE Management API controller.
-
endpoint_base¶ TUNE Management API endpoint_base URL
-
path¶ TUNE Management API service path
-
query_string¶ TUNE Management API query string.
-
query_string_dict¶ TUNE Management API query string dictionary used to build Query String.
-
url¶ TUNE Management API full service request.
-
version¶ TUNE Management API version
tune_reporting.base.service.response module¶
TUNE Management API Response¶
-
class
tune_reporting.base.service.response.TuneManagementResponse(response_json=None, response_http_code=None, response_headers=None, request_url=None)[source]¶ Bases:
objectResponse container of TUNE Management API.
The constructor.
Parameters: -
data¶ Get property to get ‘data’ portion of JSON response returned from TUNE Management API Service.
-
errors¶ Get property to get ‘errors’ portion of JSON response returned from TUNE Management API Service.
-
headers¶ Get property for HTTP Headers of response.
-
http_code¶ Get property for HTTP Code of response.
-
json¶ Get property for Full JSON response returned from TUNE Management API Service.
-
request_url¶ Initial TuneManagementRequest URL to TUNE Management API Service.
-
size¶ Get property to get ‘response_size’ portion of JSON response returned from TUNE Management API Service.
-
status_code¶ Get property to get ‘status_code’ portion of JSON response returned from TUNE Management API Service.
-
Module contents¶
tune management shared service module