All URIs are relative to /api/v1
Method | HTTP request | Description |
---|---|---|
v1_change_password | PATCH /users/me/password | Change Password |
v1_get_current_user | GET /users/me | Get Current User |
v1_get_user | GET /users/{uid} | Get User |
v1_update_current_user | PATCH /users/me | Update Current User |
UserDetailResp v1_change_password(body)
Change Password
from __future__ import print_function
import time
import joj.horse_client
from joj.horse_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = joj.horse_client.UserApi(joj.horse_client.ApiClient(configuration))
body = joj.horse_client.UserResetPassword() # UserResetPassword |
try:
# Change Password
api_response = api_instance.v1_change_password(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserApi->v1_change_password: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | UserResetPassword |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserDetailResp v1_get_current_user()
Get Current User
from __future__ import print_function
import time
import joj.horse_client
from joj.horse_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = joj.horse_client.UserApi(joj.horse_client.ApiClient(configuration))
try:
# Get Current User
api_response = api_instance.v1_get_current_user()
pprint(api_response)
except ApiException as e:
print("Exception when calling UserApi->v1_get_current_user: %s\n" % e)
This endpoint does not need any parameter.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserPreviewResp v1_get_user(uid)
Get User
from __future__ import print_function
import time
import joj.horse_client
from joj.horse_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = joj.horse_client.UserApi(joj.horse_client.ApiClient(configuration))
uid = 'uid_example' # str |
try:
# Get User
api_response = api_instance.v1_get_user(uid)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserApi->v1_get_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
uid | str |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserDetailResp v1_update_current_user(body)
Update Current User
from __future__ import print_function
import time
import joj.horse_client
from joj.horse_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = joj.horse_client.UserApi(joj.horse_client.ApiClient(configuration))
body = joj.horse_client.UserEdit() # UserEdit |
try:
# Update Current User
api_response = api_instance.v1_update_current_user(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserApi->v1_update_current_user: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | UserEdit |
[Back to top] [Back to API list] [Back to Model list] [Back to README]