Example:
Basic Code to use Python to fetch list of all users invited to the Split account.
Script will use the REST Admin API to perform the actions.
How to use:
- Class wrapper for Admin API, installation instructions in this link: Python Admin API Library Wrapper
- Use the code below, update the Admin API key.
from splitapiclient.main import get_client
client = get_client({'apikey': 'ADMIN API KEY'})
for user in client.users.list('ACTIVE'):
print (user._email, user._status)
for user in client.users.list('DEACTIVATED'):
print (user._email, user._status)
for user in client.users.list('PENDING'):
print (user._email, user._status)
Comments
0 comments
Please sign in to leave a comment.