AppMonetization / Paginator / ListSubscriptions

ListSubscriptions

class AppMonetization.Paginator.ListSubscriptions
paginator = client.get_paginator('list_subscriptions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from AppMonetization.Client.list_subscriptions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    appId='string',
    scope='sandbox'|'live',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • appId (string) –

    [REQUIRED]

    The ID of the app.

  • scope (string) –

    [REQUIRED]

    Required. The environment: live or sandbox.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'items': [
        {
            'appId': 'string',
            'userId': 'string',
            'planId': 'string',
            'effectiveAt': datetime(2015, 1, 1),
            'billingAnchorDate': datetime(2015, 1, 1),
            'billingCycle': 'MONTHLY'|'ANNUAL'|'ONE_TIME'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    Output for ListSubscriptions.

    • items (list) –

      The page of subscription summaries for the app.

      • (dict) –

        A summary of a user’s subscription to a plan for an app, read from the user’s latest subscription record. While a change is scheduled, planId, effectiveAt and billingCycle describe the scheduled change. Call GetSubscription for the subscription in effect.

        • appId (string) –

          The ID of the app that the subscription belongs to.

        • userId (string) –

          The opaque end-user identifier that the subscription belongs to.

        • planId (string) –

          The ID of the plan on the user’s latest subscription record. If a plan change is scheduled, this is the plan the subscription moves to; if a cancellation is scheduled or has taken effect, it is absent. Call GetSubscription for the plan in effect.

        • effectiveAt (datetime) –

          The time when the subscription took effect.

        • billingAnchorDate (datetime) –

          The fixed reference instant the recurring billing cycle is measured from. It is set when the subscription first takes effect and stays fixed as periods roll forward, so it is normally an older date than the current period — not the start of the current period. The resolved current-period end ( currentPeriodEndsAt) is available on GetSubscription for a single user; this summary carries only the anchor.

        • billingCycle (string) –

          The billing cycle of the subscription, such as monthly or annual.

    • NextToken (string) –

      A token to resume pagination.