All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| GetCurrentUserProfile | Get /user/profile | Get current user profile |
| SaveCurrentUserProfile | Put /user/profile | Save current user profile |
UserProfile GetCurrentUserProfile(ctx).Execute()
Get current user profile
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserProfileApi.GetCurrentUserProfile(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserProfileApi.GetCurrentUserProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCurrentUserProfile`: UserProfile
fmt.Fprintf(os.Stdout, "Response from `UserProfileApi.GetCurrentUserProfile`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetCurrentUserProfileRequest struct via the builder pattern
ApiToken, ServiceBearer, ServiceToken
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserProfile SaveCurrentUserProfile(ctx).UserProfile(userProfile).Execute()
Save current user profile
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userProfile := *openapiclient.NewUserProfile("Name_example", []string{"SystemNotificationsRead_example"}, false, false, false) // UserProfile |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserProfileApi.SaveCurrentUserProfile(context.Background()).UserProfile(userProfile).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserProfileApi.SaveCurrentUserProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SaveCurrentUserProfile`: UserProfile
fmt.Fprintf(os.Stdout, "Response from `UserProfileApi.SaveCurrentUserProfile`: %v\n", resp)
}Other parameters are passed through a pointer to a apiSaveCurrentUserProfileRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| userProfile | UserProfile |
ApiToken, ServiceBearer, ServiceToken
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]