Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@
# A list of record objects with the properties described above
records = client.usage.records.last_month.list()


# Print the JSON object
for record in records:
print(record.start_date, record.end_date, record.category, record.count,
record.count_unit, record.price, record.price_unit)
print(record.count)
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@

# A list of record objects with the properties described above
records = client.usage.records.today.list(category="calls")

for record in records:
print(record.count)
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
records = client.usage.records.list(
category="calls-inbound", start_date="2012-09-01", end_date="2012-09-30"
)

for record in records:
print(record.count)
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
records = client.usage.records.daily.list(
category="calls-inbound", start_date="2012-09-01", end_date="2012-09-30"
)

for record in records:
print(record.count)
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@

# A list of record objects with the properties described above
records = client.usage.records.list()

for record in records:
print(record.count)