We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21dd1d1 + aebbe87 commit bdcf3edCopy full SHA for bdcf3ed
docs/source/misc/examples.rst
@@ -20,3 +20,17 @@ Print number of books for every marketplace::
20
print(f"Country: {client.marketplace.upper()} | Number of books: {len(asins)}")
21
print(34* "-")
22
23
+Get listening statistics aggragated month-over-month from 2021-03 to 2021-06::
24
+
25
+ import audible
26
27
+ auth = audible.Authenticator.from_file(filename)
28
+ client = audible.Client(auth)
29
+ with audible.Client(auth=auth) as client:
30
+ stats = client.get(
31
+ "1.0/stats/aggregates",
32
+ monthly_listening_interval_duration="3", #number of months to aggragate for
33
+ monthly_listening_interval_start_date="2021-03", #start month for aggragation
34
+ store="Audible")
35
36
0 commit comments