Skip to content

Commit

Permalink
Update README with v2 endpoint version for Get Transaction History
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderjordanbaker committed Jun 14, 2024
1 parent 04e3c85 commit cde6e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ except VerificationException as e:
### Receipt Usage

```python
from appstoreserverlibrary.api_client import AppStoreServerAPIClient, APIException
from appstoreserverlibrary.api_client import AppStoreServerAPIClient, APIException, GetTransactionHistoryVersion
from appstoreserverlibrary.models.Environment import Environment
from appstoreserverlibrary.receipt_utility import ReceiptUtility
from appstoreserverlibrary.models.HistoryResponse import HistoryResponse
Expand Down Expand Up @@ -109,7 +109,7 @@ try:
)
while response == None or response.hasMore:
revision = response.revision if response != None else None
response = client.get_transaction_history(transaction_id, revision, request)
response = client.get_transaction_history(transaction_id, revision, request, GetTransactionHistoryVersion.V2)
for transaction in response.signedTransactions:
transactions.append(transaction)
print(transactions)
Expand Down

0 comments on commit cde6e06

Please sign in to comment.