(users)
Users are lightweight objects that handle signing in to our app.moov.io
Returns the specific user if they have access
from moov import Moov
import os
s = Moov(
gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)
res = s.users.get_user(user_id="ec7e1848-dc80-4ab0-8827-dd7fc0737b43")
if res is not None:
# handle response
pass
Parameter |
Type |
Required |
Description |
Example |
user_id |
str |
✔️ |
UserID of the user to load |
ec7e1848-dc80-4ab0-8827-dd7fc0737b43 |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
|
models.GetUserResponse
Error Type |
Status Code |
Content Type |
models.SDKError |
4XX, 5XX |
*/* |
Updates the specific user with the new values
from moov import Moov
import os
s = Moov(
gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)
res = s.users.update_user(user_id="ec7e1848-dc80-4ab0-8827-dd7fc0737b43")
if res is not None:
# handle response
pass
Parameter |
Type |
Required |
Description |
Example |
user_id |
str |
✔️ |
UserID of the user to update |
ec7e1848-dc80-4ab0-8827-dd7fc0737b43 |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
|
models.UpdateUserResponse
Error Type |
Status Code |
Content Type |
models.SDKError |
4XX, 5XX |
*/* |
Returns the list of accounts a user has access to
from moov import Moov
import os
s = Moov(
gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)
res = s.users.get_user_accounts(user_id="ec7e1848-dc80-4ab0-8827-dd7fc0737b43")
if res is not None:
# handle response
pass
Parameter |
Type |
Required |
Description |
Example |
user_id |
str |
✔️ |
UserID of the user to load |
ec7e1848-dc80-4ab0-8827-dd7fc0737b43 |
x_account_id |
Optional[str] |
➖ |
ID of the account. |
|
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
|
models.GetUserAccountsResponse
Error Type |
Status Code |
Content Type |
models.SDKError |
4XX, 5XX |
*/* |
Returns the pending invitiations sent to the user by user on other accounts
from moov import Moov
import os
s = Moov(
gateway_auth=os.getenv("MOOV_GATEWAY_AUTH", ""),
)
res = s.users.get_user_invites(user_id="ec7e1848-dc80-4ab0-8827-dd7fc0737b43")
if res is not None:
# handle response
pass
Parameter |
Type |
Required |
Description |
Example |
user_id |
str |
✔️ |
UserID of the user to load |
ec7e1848-dc80-4ab0-8827-dd7fc0737b43 |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
|
models.GetUserInvitesResponse
Error Type |
Status Code |
Content Type |
models.SDKError |
4XX, 5XX |
*/* |