Skip to content

Commit 546ff41

Browse files
Merge pull request #98 from alexanderjordanbaker/V2READMEUpdateGetTransactionHistory
Update README with v2 endpoint version for Get Transaction History
2 parents 35b9448 + cde6e06 commit 546ff41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ except VerificationException as e:
8080
### Receipt Usage
8181

8282
```python
83-
from appstoreserverlibrary.api_client import AppStoreServerAPIClient, APIException
83+
from appstoreserverlibrary.api_client import AppStoreServerAPIClient, APIException, GetTransactionHistoryVersion
8484
from appstoreserverlibrary.models.Environment import Environment
8585
from appstoreserverlibrary.receipt_utility import ReceiptUtility
8686
from appstoreserverlibrary.models.HistoryResponse import HistoryResponse
@@ -109,7 +109,7 @@ try:
109109
)
110110
while response == None or response.hasMore:
111111
revision = response.revision if response != None else None
112-
response = client.get_transaction_history(transaction_id, revision, request)
112+
response = client.get_transaction_history(transaction_id, revision, request, GetTransactionHistoryVersion.V2)
113113
for transaction in response.signedTransactions:
114114
transactions.append(transaction)
115115
print(transactions)

0 commit comments

Comments
 (0)