All URIs are relative to https://app.corellium.com/api
Method | HTTP request | Description |
---|---|---|
V1CreateUser | Post /v1/users | Create User |
V1DeleteUser | Delete /v1/users/{userId} | Delete User |
V1GetResetLinkInfo | Get /v1/users/reset-link-info | Send Password Reset Link Info |
V1ResetUserPassword | Post /v1/users/reset-password | Reset User Password |
V1SendUserResetLink | Post /v1/users/send-reset-link | Send Password Reset Link |
V1UpdateUser | Patch /v1/users/{userId} | Update User |
V1UserAgreeTerms | Post /v1/users/agree | Consent to the current terms and conditions |
V1UsersChangePasswordPost | Post /v1/users/change-password | Change User Password |
V1UsersLogin | Post /v1/users/login | Log In |
map[string]interface{} V1CreateUser(ctx).Body(body).Execute()
Create User
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
body := map[string]interface{}{ ... } // map[string]interface{} | User data
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersApi.V1CreateUser(context.Background()).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.V1CreateUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1CreateUser`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `UsersApi.V1CreateUser`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiV1CreateUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
body | map[string]interface{} | User data |
map[string]interface{}
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} V1DeleteUser(ctx, userId).Execute()
Delete User
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
userId := "userId_example" // string | userId - uuid
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersApi.V1DeleteUser(context.Background(), userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.V1DeleteUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1DeleteUser`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `UsersApi.V1DeleteUser`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
userId | string | userId - uuid |
Other parameters are passed through a pointer to a apiV1DeleteUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
map[string]interface{}
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} V1GetResetLinkInfo(ctx).Token(token).Execute()
Send Password Reset Link Info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
token := "token_example" // string | Reset token
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersApi.V1GetResetLinkInfo(context.Background()).Token(token).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.V1GetResetLinkInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1GetResetLinkInfo`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `UsersApi.V1GetResetLinkInfo`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiV1GetResetLinkInfoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
token | string | Reset token |
map[string]interface{}
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1ResetUserPassword(ctx).PasswordResetBody(passwordResetBody).Execute()
Reset User Password
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
passwordResetBody := *openapiclient.NewPasswordResetBody("Token_example", "TotpToken_example", "NewPassword_example") // PasswordResetBody | application/json
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.UsersApi.V1ResetUserPassword(context.Background()).PasswordResetBody(passwordResetBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.V1ResetUserPassword``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiV1ResetUserPasswordRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
passwordResetBody | PasswordResetBody | application/json |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V1SendUserResetLink(ctx).ResetLinkBody(resetLinkBody).Execute()
Send Password Reset Link
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
resetLinkBody := *openapiclient.NewResetLinkBody("Email_example") // ResetLinkBody | application/json
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.UsersApi.V1SendUserResetLink(context.Background()).ResetLinkBody(resetLinkBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.V1SendUserResetLink``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiV1SendUserResetLinkRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
resetLinkBody | ResetLinkBody | application/json |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
map[string]interface{} V1UpdateUser(ctx, userId).Body(body).Execute()
Update User
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
userId := "userId_example" // string | userId - uuid
body := map[string]interface{}{ ... } // map[string]interface{} | User data
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersApi.V1UpdateUser(context.Background(), userId).Body(body).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.V1UpdateUser``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1UpdateUser`: map[string]interface{}
fmt.Fprintf(os.Stdout, "Response from `UsersApi.V1UpdateUser`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
userId | string | userId - uuid |
Other parameters are passed through a pointer to a apiV1UpdateUserRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
body | map[string]interface{} | User data |
map[string]interface{}
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AgreedAck V1UserAgreeTerms(ctx).Execute()
Consent to the current terms and conditions
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersApi.V1UserAgreeTerms(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.V1UserAgreeTerms``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1UserAgreeTerms`: AgreedAck
fmt.Fprintf(os.Stdout, "Response from `UsersApi.V1UserAgreeTerms`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV1UserAgreeTermsRequest 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]
V1UsersChangePasswordPost(ctx).PasswordChangeBody(passwordChangeBody).Execute()
Change User Password
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
passwordChangeBody := *openapiclient.NewPasswordChangeBody("User_example", "OldPassword_example", "NewPassword_example") // PasswordChangeBody |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.UsersApi.V1UsersChangePasswordPost(context.Background()).PasswordChangeBody(passwordChangeBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.V1UsersChangePasswordPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Other parameters are passed through a pointer to a apiV1UsersChangePasswordPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
passwordChangeBody | PasswordChangeBody |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Token V1UsersLogin(ctx).Credentials(credentials).Execute()
Log In
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/aimoda/go-corellium-api-client"
)
func main() {
credentials := *openapiclient.NewCredentials("Username_example", "Password_example") // Credentials | Authorization data
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersApi.V1UsersLogin(context.Background()).Credentials(credentials).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.V1UsersLogin``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V1UsersLogin`: Token
fmt.Fprintf(os.Stdout, "Response from `UsersApi.V1UsersLogin`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiV1UsersLoginRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
credentials | Credentials | Authorization data |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]