Skip to content

Commit eddb7a7

Browse files
PR feedback
1 parent e3182ba commit eddb7a7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ You may pass the following optional arguments:
337337
338338
client = Client('sk-XXX')
339339
340-
response = client.accounts.transactions(
340+
response = client.transactions(
341341
start='2016-07-15T00:00:00.000Z',
342342
end='2016-09-30T00:00:00.000Z',
343343
time_field='modified_date',

pybutton/resources/transactions.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,20 @@ def all(self, cursor=None, start=None, end=None, time_field=None):
1717
'''Get a list of transactions.
1818
To paginate transactions, pass the result of response.next_cursor() as
1919
the cursor argument.
20+
Unlike Accounts.transactions, which retrieves transactions only for a
21+
single account, Transactions.all retrieves all of an organization's
22+
transactions.
2023
2124
2225
Args:
23-
account_id (str) optional: A Button account id ('acc-XXX')
2426
cursor (str) optional: An opaque string that lets you view a
2527
consistent list of transactions.
2628
start (ISO-8601 datetime str) optional: Filter out transactions
2729
created at or after this time.
2830
end (ISO-8601 datetime str) optional: Filter out transactions
2931
created before this time.
3032
time_field (str) optional: Which time field ``start`` and ``end``
31-
filter on
33+
filter on. Defaults to created_date.
3234
3335
Raises:
3436
pybutton.ButtonClientError

0 commit comments

Comments
 (0)