get_subscription
async
¶
get_subscription(
app_id: AppId,
user_id: UserId,
scope: RequestScope,
*,
config_overrides: Optional[AsyncAppMonetizationClientConfig] = None,
) -> GetSubscriptionResponse
Returns a user's current subscription and any pending change.
Parameters:
-
app_id(AppId) –The ID of the app.
-
user_id(UserId) –An opaque identifier that you assign to an end user. Do not include personally identifiable or otherwise sensitive data in this value.
-
scope(RequestScope) –Required. The environment: live or sandbox.
Raises:
-
AccessDeniedException–The caller does not have sufficient permission to perform this action.
-
InternalServerException–An unexpected error occurred while processing the request.
-
ResourceNotFoundException–The referenced resource does not exist.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request failed input validation.
-
UnknownServiceError–The service returned an error code this client does not model.