All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| GetUser | Get /v2/users/{user_id} | Get a user's public information |
| GetUserActivity | Get /v2/users/activity | Get auth user activity |
| SubmitUserFeedback | Post /v2/users/feedback | Submit feedback about the application |
| V3GetUser | Get /v3/users/{user_id} | Get a user's public information |
| V3GetUserActivity | Get /v3/users/activity | Get the caller's activity feed |
| V3ListPrincipals | Get /v3/principals | Search users and teams |
| V3ListTeams | Get /v3/teams | Search teams |
| V3ListUsers | Get /v3/users | Search users |
| V3SubmitUserFeedback | Post /v3/users/feedback | Submit feedback |
BaseResponseGetPublicUserResponse GetUser(ctx, userId).Execute()
Get a user's public information
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
userId := int32(56) // int32 |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AuthenticationUsersAPI.GetUser(context.Background(), userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationUsersAPI.GetUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUser`: BaseResponseGetPublicUserResponse
fmt.Fprintf(os.Stdout, "Response from `AuthenticationUsersAPI.GetUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userId | int32 |
Other parameters are passed through a pointer to a apiGetUserRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
BaseResponseGetPublicUserResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseListUserActivityResponse GetUserActivity(ctx).Execute()
Get auth user activity
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AuthenticationUsersAPI.GetUserActivity(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationUsersAPI.GetUserActivity``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetUserActivity`: BaseResponseListUserActivityResponse
fmt.Fprintf(os.Stdout, "Response from `AuthenticationUsersAPI.GetUserActivity`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetUserActivityRequest struct via the builder pattern
BaseResponseListUserActivityResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponse SubmitUserFeedback(ctx).SubmitUserFeedbackRequest(submitUserFeedbackRequest).Execute()
Submit feedback about the application
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
submitUserFeedbackRequest := *revengai.NewSubmitUserFeedbackRequest("CurrentRoute_example", "Feedback_example") // SubmitUserFeedbackRequest |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AuthenticationUsersAPI.SubmitUserFeedback(context.Background()).SubmitUserFeedbackRequest(submitUserFeedbackRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationUsersAPI.SubmitUserFeedback``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SubmitUserFeedback`: BaseResponse
fmt.Fprintf(os.Stdout, "Response from `AuthenticationUsersAPI.SubmitUserFeedback`: %v\n", resp)
}Other parameters are passed through a pointer to a apiSubmitUserFeedbackRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| submitUserFeedbackRequest | SubmitUserFeedbackRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPublicUserOutputBody V3GetUser(ctx, userId).Execute()
Get a user's public information
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
userId := int64(789) // int64 | User ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AuthenticationUsersAPI.V3GetUser(context.Background(), userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationUsersAPI.V3GetUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3GetUser`: GetPublicUserOutputBody
fmt.Fprintf(os.Stdout, "Response from `AuthenticationUsersAPI.V3GetUser`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| userId | int64 | User ID |
Other parameters are passed through a pointer to a apiV3GetUserRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetUserActivityOutputBody V3GetUserActivity(ctx).Execute()
Get the caller's activity feed
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AuthenticationUsersAPI.V3GetUserActivity(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationUsersAPI.V3GetUserActivity``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3GetUserActivity`: GetUserActivityOutputBody
fmt.Fprintf(os.Stdout, "Response from `AuthenticationUsersAPI.V3GetUserActivity`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV3GetUserActivityRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPrincipalsOutputBody V3ListPrincipals(ctx).SearchTerm(searchTerm).Execute()
Search users and teams
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
searchTerm := "searchTerm_example" // string | Text the user's username or team's name contains (case-insensitive)
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AuthenticationUsersAPI.V3ListPrincipals(context.Background()).SearchTerm(searchTerm).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationUsersAPI.V3ListPrincipals``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3ListPrincipals`: ListPrincipalsOutputBody
fmt.Fprintf(os.Stdout, "Response from `AuthenticationUsersAPI.V3ListPrincipals`: %v\n", resp)
}Other parameters are passed through a pointer to a apiV3ListPrincipalsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| searchTerm | string | Text the user's username or team's name contains (case-insensitive) |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTeamsOutputBody V3ListTeams(ctx).SearchTerm(searchTerm).Execute()
Search teams
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
searchTerm := "searchTerm_example" // string | Text the team name contains (case-insensitive)
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AuthenticationUsersAPI.V3ListTeams(context.Background()).SearchTerm(searchTerm).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationUsersAPI.V3ListTeams``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3ListTeams`: ListTeamsOutputBody
fmt.Fprintf(os.Stdout, "Response from `AuthenticationUsersAPI.V3ListTeams`: %v\n", resp)
}Other parameters are passed through a pointer to a apiV3ListTeamsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| searchTerm | string | Text the team name contains (case-insensitive) |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPublicUsersOutputBody V3ListUsers(ctx).SearchTerm(searchTerm).Execute()
Search users
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
searchTerm := "searchTerm_example" // string | Text the username contains (case-insensitive)
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AuthenticationUsersAPI.V3ListUsers(context.Background()).SearchTerm(searchTerm).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationUsersAPI.V3ListUsers``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3ListUsers`: ListPublicUsersOutputBody
fmt.Fprintf(os.Stdout, "Response from `AuthenticationUsersAPI.V3ListUsers`: %v\n", resp)
}Other parameters are passed through a pointer to a apiV3ListUsersRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| searchTerm | string | Text the username contains (case-insensitive) |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SubmitFeedbackOutputBody V3SubmitUserFeedback(ctx).SubmitFeedbackBody(submitFeedbackBody).Execute()
Submit feedback
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v4"
)
func main() {
submitFeedbackBody := *revengai.NewSubmitFeedbackBody("CurrentRoute_example", "Feedback_example") // SubmitFeedbackBody |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.AuthenticationUsersAPI.V3SubmitUserFeedback(context.Background()).SubmitFeedbackBody(submitFeedbackBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthenticationUsersAPI.V3SubmitUserFeedback``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V3SubmitUserFeedback`: SubmitFeedbackOutputBody
fmt.Fprintf(os.Stdout, "Response from `AuthenticationUsersAPI.V3SubmitUserFeedback`: %v\n", resp)
}Other parameters are passed through a pointer to a apiV3SubmitUserFeedbackRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| submitFeedbackBody | SubmitFeedbackBody |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]