Skip to content

Commit 4d60468

Browse files
committed
Merge branch 'refactor/user-agent' of github.com:stax-labs/lib-stax-python-sdk into refactor/user-agent
2 parents bc28a84 + a958821 commit 4d60468

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+113
-88
lines changed

README.md

Lines changed: 2 additions & 2 deletions

examples/account_types/create_account_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
response = accounts.CreateAccountType(
1414
Name=account_type_name
1515
)
16-
print(response)
16+
print(response.json())

examples/account_types/delete_account_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
response = accounts.DeleteAccountType(
1414
account_type_id=account_type_id
1515
)
16-
print(response)
16+
print(response.json())

examples/account_types/read_account_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# Read all account types within your Stax Organisation
1010
accounts = StaxClient("accounts")
1111
response = accounts.ReadAccountTypes()
12-
print(response)
12+
print(response.json())

examples/account_types/update_account_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
account_type_id = account_type_id,
1818
Name = account_type_name
1919
)
20-
print(response)
20+
print(response.json())

examples/account_types/update_account_type_access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
AddRoles= access_roles_to_add,
2121
RemoveRoles=access_roles_to_remove
2222
)
23-
print(response)
23+
print(response.json())

examples/account_types/update_account_type_members.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
response = accounts.UpdateAccountTypeMembers(
2222
Members=account_type_mappings
2323
)
24-
print(response)
24+
print(response.json())

examples/account_types/update_policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
AddPolicies= policies_to_add,
2020
RemovePolicies= policies_to_remove
2121
)
22-
print(response)
22+
print(response.json())

examples/accounts/create_accounts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
Name=account_name,
1616
AccountType=account_type,
1717
)
18-
print(response)
18+
print(response.json())

examples/accounts/read_accounts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
# Read all accounts within your Stax Organisation
1010
accounts = StaxClient("accounts")
1111
response = accounts.ReadAccounts()
12-
print(response)
12+
print(response.json())
1313

1414
# Read all active accounts within your Stax Organisation and include tags in the response
1515
accounts = StaxClient("accounts")
1616
response = accounts.ReadAccounts(filter="ACTIVE", include_tags=True)
17-
print(response)
17+
print(response.json())

0 commit comments

Comments
 (0)