tune_reporting.base.service package

Submodules

tune_reporting.base.service.constants module

TUNE Reporting API service constants

tune_reporting.base.service.query_string_builder module

TUNE Reporting API Query String Builder

class tune_reporting.base.service.query_string_builder.QueryStringBuilder(name=None, value=None)[source]

Bases: object

Build 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.

add(name, value)[source]

Add query string parameter. :param name (str): query string parameter’s key.

Parameters:(str) (value) – query string parameter’s value.

tune_reporting.base.service.tune_service_client module

TUNE Service Client

class tune_reporting.base.service.tune_service_client.TuneServiceClient(controller, action, auth_key, auth_type, map_query_string=None, api_url_endpoint='https://api.mobileapptracking.com', api_url_version='v2')[source]

Bases: object

TUNE MobileAppTracking Servoce access class.

The constructor.

Parameters:
  • controller (str) – TUNE Reporting API endpoint name.
  • action (str) – TUNE Reporting API endpoint’s action name.
  • auth_key (str) – TUNE Reporting authentication key.
  • auth_type (str) – TUNE Reporting authentication type.
  • map_query_string (array) – Action’s query string parameters.
  • api_url_endpoint (str) – TUNE Reporting API endpoint path.
  • api_url_version (str) – TUNE Reporting API version.
call()[source]

Sends a request and gets a response from the TUNE Management API Service.

request[source]

Property get request object.

response[source]

Property get response object.

static version()[source]

Get SDK version.

tune_reporting.base.service.tune_service_proxy module

TUNE Service Proxy

class tune_reporting.base.service.tune_service_proxy.TuneServiceProxy(request_url)[source]

Bases: object

Service proxy class for connecting to TUNE Service.

The constructor

Parameters:request_url (str) –
execute()[source]

HTTP POST request to TUNE MobileAppTracking TUNE Reporting API.

Returns:
bool: True upon success.
response[source]

Full response object to TUNE Reporting API service.

tune_reporting.base.service.tune_service_request module

TUNE Service Request

class tune_reporting.base.service.tune_service_request.TuneManagementRequest(controller, action, auth_key, auth_type, map_query_string, api_url_endpoint, api_url_version)[source]

Bases: object

Base components for every TUNE Service Client request.

The constructor.

Parameters:
  • controller (str) – TUNE Reporting API endpoint name.
  • action (str) – TUNE Reporting API endpoint’s action name.
:param str auth_key TUNE Reporting authentication
key.
:param str auth_type TUNE Reporting authentication
type.
Parameters:
  • map_query_string (array) – Action’s query string parameters
  • api_url_endpoint (str) – TUNE Reporting API endpoint path
  • api_url_version (str) – TUNE Reporting API version
action[source]

TUNE Reporting API action.

auth_key[source]

TUNE Reporting authentication key.

auth_type[source]

TUNE Reporting authentication type.

controller[source]

TUNE Reporting API controller.

endpoint_base[source]

TUNE Reporting API endpoint_base URL

map_query_string[source]

TUNE Reporting API query string dictionary used to build Query String.

path[source]

TUNE Reporting API service path

query_string[source]

TUNE Reporting API query string.

url[source]

TUNE Reporting API full service request.

version[source]

TUNE Reporting API version

tune_reporting.base.service.tune_service_response module

TUNE Service Response

class tune_reporting.base.service.tune_service_response.TuneServiceResponse(response_json=None, response_http_code=None, response_headers=None, request_url=None)[source]

Bases: object

Response container of TUNE Service Client.

The constructor.

Parameters:
  • response_json (str) – TUNE Reporting API Service full response.
  • response_http_code (str) – TUNE Reporting API Service response HTTP code.
  • response_headers (array) – TUNE Reporting API Service response HTTP headers.
  • request_url (str) – TUNE Reporting API request URL.
data[source]

Get property to get ‘data’ portion of JSON response returned from TUNE Reporting API Service.

errors[source]

Get property to get ‘errors’ portion of JSON response returned from TUNE Reporting API Service.

headers[source]

Get property for HTTP Headers of response.

http_code[source]

Get property for HTTP Code of response.

json[source]

Get property for Full JSON response returned from TUNE Reporting API Service.

request_url[source]

Initial TuneManagementRequest URL to TUNE Reporting API Service.

size[source]

Get property to get ‘response_size’ portion of JSON response returned from TUNE Reporting API Service.

status_code[source]

Get property to get ‘status_code’ portion of JSON response returned from TUNE Reporting API Service.

Module contents

tune service module