All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| GetMe | Get /v2/iam/me | Get current user |
| GetMyPermissions | Get /v2/iam/me/permissions | Get current user permissions |
User GetMe(ctx).Execute()
Get current user
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.IAMUsersAPI.GetMe(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IAMUsersAPI.GetMe``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMe`: User
fmt.Fprintf(os.Stdout, "Response from `IAMUsersAPI.GetMe`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetMeRequest 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]
Permissions GetMyPermissions(ctx).Execute()
Get current user permissions
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.IAMUsersAPI.GetMyPermissions(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IAMUsersAPI.GetMyPermissions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetMyPermissions`: Permissions
fmt.Fprintf(os.Stdout, "Response from `IAMUsersAPI.GetMyPermissions`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetMyPermissionsRequest 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]