get_subscription_history
async
¶
get_subscription_history(
app_id: AppId,
user_id: UserId,
scope: RequestScope,
*,
config_overrides: Optional[AsyncAppMonetizationClientConfig] = None,
effective_after: Optional[Timestamp] = None,
effective_before: Optional[Timestamp] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> GetSubscriptionHistoryResponse
Returns the historical subscription records for a user. We recommend using pagination to ensure that the operation returns quickly and successfully.
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.
-
effective_after(Optional[Timestamp], default:None) –Returns records whose effectiveDate is at or after this instant (inclusive).
-
effective_before(Optional[Timestamp], default:None) –Returns records whose effectiveDate is before this instant (exclusive).
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return in a single page.
-
next_token(Optional[NextToken], default:None) –An opaque pagination token. Pass the value returned in a response back on the next request to retrieve the following page; absent when there are no more results.
-
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.
-
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.
Source code in docs_src/capo_appmonetization/_services/async_app_monetization.py
2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 | |