AppMonetization / Client / get_app_subscription_summary
get_app_subscription_summary¶
- AppMonetization.Client.get_app_subscription_summary(**kwargs)¶
Returns subscription counts for an app, grouped by status (the default) or by plan. The summary contains no subscriber personally identifiable information.
See also: AWS API Documentation
Request Syntax
response = client.get_app_subscription_summary( appId='string', groupBy='STATUS'|'PLAN', filterBy={ 'string': [ 'string', ] }, scope='sandbox'|'live' )
- Parameters:
appId (string) –
[REQUIRED]
The ID of the app.
groupBy (string) – The breakdown dimension. Defaults to STATUS when omitted.
filterBy (dict) –
Filter constraints keyed by dimension. A filter dimension may differ from groupBy.
(string) –
Dimensions GetAppSubscriptionSummary can group and filter by.
(list) –
A list of filter values for a single dimension.
(string) –
Literal filter value, 1-256 characters.
scope (string) –
[REQUIRED]
Required. The environment: live or sandbox.
- Return type:
dict
- Returns:
Response Syntax
{ 'appId': 'string', 'groupBy': 'STATUS'|'PLAN', 'totalSubscribers': 123, 'groups': [ { 'key': 'string', 'count': 123 }, ], 'updatedAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
Output for GetAppSubscriptionSummary.
appId (string) –
The ID of the app.
groupBy (string) –
The dimension that the summary is grouped by.
totalSubscribers (integer) –
The total number of subscribers across the app.
groups (list) –
One row per value of the groupBy dimension (subscriber count per status or per plan).
(dict) –
A subscriber count for a single value of the groupBy dimension.
key (string) –
The value of the groupBy dimension for this row.
count (integer) –
The number of subscribers in this group.
updatedAt (datetime) –
The time the summary was last updated.
Exceptions
AppMonetization.Client.exceptions.AccessDeniedExceptionAppMonetization.Client.exceptions.ValidationExceptionAppMonetization.Client.exceptions.InternalServerExceptionAppMonetization.Client.exceptions.ResourceNotFoundExceptionAppMonetization.Client.exceptions.ThrottlingException