All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| get_user | GET /v2/users/{user_id} | Get a user's public information |
| get_user_activity | GET /v2/users/activity | Get auth user activity |
| submit_user_feedback | POST /v2/users/feedback | Submit feedback about the application |
BaseResponseGetPublicUserResponse get_user(user_id)
Get a user's public information
- Api Key Authentication (APIKey):
import revengai
from revengai.models.base_response_get_public_user_response import BaseResponseGetPublicUserResponse
from revengai.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'
# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.AuthenticationUsersApi(api_client)
user_id = 56 # int |
try:
# Get a user's public information
api_response = api_instance.get_user(user_id)
print("The response of AuthenticationUsersApi->get_user:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AuthenticationUsersApi->get_user: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| user_id | int |
BaseResponseGetPublicUserResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseListUserActivityResponse get_user_activity()
Get auth user activity
- Api Key Authentication (APIKey):
import revengai
from revengai.models.base_response_list_user_activity_response import BaseResponseListUserActivityResponse
from revengai.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'
# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.AuthenticationUsersApi(api_client)
try:
# Get auth user activity
api_response = api_instance.get_user_activity()
print("The response of AuthenticationUsersApi->get_user_activity:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AuthenticationUsersApi->get_user_activity: %s\n" % e)This endpoint does not need any parameter.
BaseResponseListUserActivityResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponse submit_user_feedback(submit_user_feedback_request)
Submit feedback about the application
Submits feedback about the application and forwards it to the RevEng.ai project management tool.
- Api Key Authentication (APIKey):
import revengai
from revengai.models.base_response import BaseResponse
from revengai.models.submit_user_feedback_request import SubmitUserFeedbackRequest
from revengai.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.reveng.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = revengai.Configuration(
host = "https://api.reveng.ai"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: APIKey
configuration.api_key['APIKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['APIKey'] = 'Bearer'
# Enter a context with an instance of the API client
with revengai.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = revengai.AuthenticationUsersApi(api_client)
submit_user_feedback_request = revengai.SubmitUserFeedbackRequest() # SubmitUserFeedbackRequest |
try:
# Submit feedback about the application
api_response = api_instance.submit_user_feedback(submit_user_feedback_request)
print("The response of AuthenticationUsersApi->submit_user_feedback:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling AuthenticationUsersApi->submit_user_feedback: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| submit_user_feedback_request | SubmitUserFeedbackRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Invalid request parameters | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]