35 KiB
\UserApi
All URIs are relative to http://127.0.0.1:80
| Method | HTTP request | Description |
|---|---|---|
| AnswerApiV1PersonalUserInfoGet | Get /answer/api/v1/personal/user/info | GetOtherUserInfoByUsername |
| AnswerApiV1UserActionRecordGet | Get /answer/api/v1/user/action/record | ActionRecord |
| AnswerApiV1UserEmailChangeCodePost | Post /answer/api/v1/user/email/change/code | send email to the user email then change their email |
| AnswerApiV1UserEmailNotificationPut | Put /answer/api/v1/user/email/notification | unsubscribe email notification |
| AnswerApiV1UserEmailPut | Put /answer/api/v1/user/email | user change email verification |
| AnswerApiV1UserEmailVerificationPost | Post /answer/api/v1/user/email/verification | UserVerifyEmail |
| AnswerApiV1UserEmailVerificationSendPost | Post /answer/api/v1/user/email/verification/send | UserVerifyEmailSend |
| AnswerApiV1UserInfoGet | Get /answer/api/v1/user/info | GetUserInfoByUserID |
| AnswerApiV1UserInfoPut | Put /answer/api/v1/user/info | UserUpdateInfo update user info |
| AnswerApiV1UserInterfacePut | Put /answer/api/v1/user/interface | UserUpdateInterface update user interface config |
| AnswerApiV1UserLoginEmailPost | Post /answer/api/v1/user/login/email | UserEmailLogin |
| AnswerApiV1UserLogoutGet | Get /answer/api/v1/user/logout | user logout |
| AnswerApiV1UserNoticeSetPost | Post /answer/api/v1/user/notice/set | UserNoticeSet |
| AnswerApiV1UserPasswordPut | Put /answer/api/v1/user/password | UserModifyPassWord |
| AnswerApiV1UserPasswordReplacementPost | Post /answer/api/v1/user/password/replacement | UseRePassWord |
| AnswerApiV1UserPasswordResetPost | Post /answer/api/v1/user/password/reset | RetrievePassWord |
| AnswerApiV1UserRankingGet | Get /answer/api/v1/user/ranking | get user ranking |
| AnswerApiV1UserRegisterCaptchaGet | Get /answer/api/v1/user/register/captcha | UserRegisterCaptcha |
| AnswerApiV1UserRegisterEmailPost | Post /answer/api/v1/user/register/email | UserRegisterByEmail |
AnswerApiV1PersonalUserInfoGet
AnswerApiV1PersonalUserInfoGet200Response AnswerApiV1PersonalUserInfoGet(ctx).Username(username).Execute()
GetOtherUserInfoByUsername
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
username := "username_example" // string | username
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1PersonalUserInfoGet(context.Background()).Username(username).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1PersonalUserInfoGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1PersonalUserInfoGet`: AnswerApiV1PersonalUserInfoGet200Response
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1PersonalUserInfoGet`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1PersonalUserInfoGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| username | string | username |
Return type
AnswerApiV1PersonalUserInfoGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserActionRecordGet
AnswerApiV1UserActionRecordGet200Response AnswerApiV1UserActionRecordGet(ctx).Action(action).Execute()
ActionRecord
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
action := "action_example" // string | action
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserActionRecordGet(context.Background()).Action(action).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserActionRecordGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserActionRecordGet`: AnswerApiV1UserActionRecordGet200Response
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserActionRecordGet`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserActionRecordGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| action | string | action |
Return type
AnswerApiV1UserActionRecordGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserEmailChangeCodePost
HandlerRespBody AnswerApiV1UserEmailChangeCodePost(ctx).Data(data).Execute()
send email to the user email then change their email
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUserChangeEmailSendCodeReq("EMail_example") // SchemaUserChangeEmailSendCodeReq | UserChangeEmailSendCodeReq
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailChangeCodePost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailChangeCodePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserEmailChangeCodePost`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailChangeCodePost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailChangeCodePostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUserChangeEmailSendCodeReq | UserChangeEmailSendCodeReq |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserEmailNotificationPut
HandlerRespBody AnswerApiV1UserEmailNotificationPut(ctx).Execute()
unsubscribe email notification
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailNotificationPut(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailNotificationPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserEmailNotificationPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailNotificationPut`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailNotificationPutRequest struct via the builder pattern
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserEmailPut
HandlerRespBody AnswerApiV1UserEmailPut(ctx).Data(data).Execute()
user change email verification
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUserChangeEmailVerifyReq("Code_example") // SchemaUserChangeEmailVerifyReq | UserChangeEmailVerifyReq
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserEmailPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUserChangeEmailVerifyReq | UserChangeEmailVerifyReq |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserEmailVerificationPost
AnswerApiV1UserEmailVerificationPost200Response AnswerApiV1UserEmailVerificationPost(ctx).Code(code).Execute()
UserVerifyEmail
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
code := "code_example" // string | code
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationPost(context.Background()).Code(code).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailVerificationPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserEmailVerificationPost`: AnswerApiV1UserEmailVerificationPost200Response
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailVerificationPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailVerificationPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| code | string | code |
Return type
AnswerApiV1UserEmailVerificationPost200Response
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserEmailVerificationSendPost
string AnswerApiV1UserEmailVerificationSendPost(ctx).CaptchaId(captchaId).CaptchaCode(captchaCode).Execute()
UserVerifyEmailSend
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
captchaId := "captchaId_example" // string | captcha_id (optional)
captchaCode := "captchaCode_example" // string | captcha_code (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserEmailVerificationSendPost(context.Background()).CaptchaId(captchaId).CaptchaCode(captchaCode).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserEmailVerificationSendPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserEmailVerificationSendPost`: string
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserEmailVerificationSendPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserEmailVerificationSendPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| captchaId | string | captcha_id | |
| captchaCode | string | captcha_code |
Return type
string
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserInfoGet
AnswerApiV1UserInfoGet200Response AnswerApiV1UserInfoGet(ctx).Execute()
GetUserInfoByUserID
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserInfoGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInfoGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserInfoGet`: AnswerApiV1UserInfoGet200Response
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInfoGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserInfoGetRequest struct via the builder pattern
Return type
AnswerApiV1UserInfoGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserInfoPut
HandlerRespBody AnswerApiV1UserInfoPut(ctx).Authorization(authorization).Data(data).Execute()
UserUpdateInfo update user info
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
authorization := "authorization_example" // string | access-token
data := *openapiclient.NewSchemaUpdateInfoRequest("DisplayName_example") // SchemaUpdateInfoRequest | UpdateInfoRequest
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserInfoPut(context.Background()).Authorization(authorization).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInfoPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserInfoPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInfoPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserInfoPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| authorization | string | access-token | |
| data | SchemaUpdateInfoRequest | UpdateInfoRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserInterfacePut
HandlerRespBody AnswerApiV1UserInterfacePut(ctx).Authorization(authorization).Data(data).Execute()
UserUpdateInterface update user interface config
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
authorization := "authorization_example" // string | access-token
data := *openapiclient.NewSchemaUpdateUserInterfaceRequest("Language_example") // SchemaUpdateUserInterfaceRequest | UpdateInfoRequest
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserInterfacePut(context.Background()).Authorization(authorization).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserInterfacePut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserInterfacePut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserInterfacePut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserInterfacePutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| authorization | string | access-token | |
| data | SchemaUpdateUserInterfaceRequest | UpdateInfoRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserLoginEmailPost
AnswerApiV1UserEmailVerificationPost200Response AnswerApiV1UserLoginEmailPost(ctx).Data(data).Execute()
UserEmailLogin
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUserEmailLogin("EMail_example", "Pass_example") // SchemaUserEmailLogin | UserEmailLogin
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserLoginEmailPost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserLoginEmailPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserLoginEmailPost`: AnswerApiV1UserEmailVerificationPost200Response
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserLoginEmailPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserLoginEmailPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUserEmailLogin | UserEmailLogin |
Return type
AnswerApiV1UserEmailVerificationPost200Response
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserLogoutGet
HandlerRespBody AnswerApiV1UserLogoutGet(ctx).Execute()
user logout
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserLogoutGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserLogoutGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserLogoutGet`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserLogoutGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserLogoutGetRequest struct via the builder pattern
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserNoticeSetPost
AnswerApiV1UserNoticeSetPost200Response AnswerApiV1UserNoticeSetPost(ctx).Data(data).Execute()
UserNoticeSet
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUserNoticeSetRequest() // SchemaUserNoticeSetRequest | UserNoticeSetRequest
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserNoticeSetPost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserNoticeSetPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserNoticeSetPost`: AnswerApiV1UserNoticeSetPost200Response
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserNoticeSetPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserNoticeSetPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUserNoticeSetRequest | UserNoticeSetRequest |
Return type
AnswerApiV1UserNoticeSetPost200Response
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserPasswordPut
HandlerRespBody AnswerApiV1UserPasswordPut(ctx).Data(data).Execute()
UserModifyPassWord
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUserModifyPassWordRequest() // SchemaUserModifyPassWordRequest | UserModifyPassWordRequest
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserPasswordPut(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserPasswordPut``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserPasswordPut`: HandlerRespBody
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserPasswordPut`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserPasswordPutRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUserModifyPassWordRequest | UserModifyPassWordRequest |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserPasswordReplacementPost
string AnswerApiV1UserPasswordReplacementPost(ctx).Data(data).Execute()
UseRePassWord
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUserRePassWordRequest("Code_example", "Pass_example") // SchemaUserRePassWordRequest | UserRePassWordRequest
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserPasswordReplacementPost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserPasswordReplacementPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserPasswordReplacementPost`: string
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserPasswordReplacementPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserPasswordReplacementPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUserRePassWordRequest | UserRePassWordRequest |
Return type
string
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserPasswordResetPost
string AnswerApiV1UserPasswordResetPost(ctx).Data(data).Execute()
RetrievePassWord
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUserRetrievePassWordRequest("EMail_example") // SchemaUserRetrievePassWordRequest | UserRetrievePassWordRequest
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserPasswordResetPost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserPasswordResetPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserPasswordResetPost`: string
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserPasswordResetPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserPasswordResetPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUserRetrievePassWordRequest | UserRetrievePassWordRequest |
Return type
string
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserRankingGet
AnswerApiV1UserRankingGet200Response AnswerApiV1UserRankingGet(ctx).Execute()
get user ranking
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserRankingGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserRankingGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserRankingGet`: AnswerApiV1UserRankingGet200Response
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserRankingGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserRankingGetRequest struct via the builder pattern
Return type
AnswerApiV1UserRankingGet200Response
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserRegisterCaptchaGet
AnswerApiV1UserEmailVerificationPost200Response AnswerApiV1UserRegisterCaptchaGet(ctx).Execute()
UserRegisterCaptcha
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserRegisterCaptchaGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserRegisterCaptchaGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserRegisterCaptchaGet`: AnswerApiV1UserEmailVerificationPost200Response
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserRegisterCaptchaGet`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserRegisterCaptchaGetRequest struct via the builder pattern
Return type
AnswerApiV1UserEmailVerificationPost200Response
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AnswerApiV1UserRegisterEmailPost
AnswerApiV1UserEmailVerificationPost200Response AnswerApiV1UserRegisterEmailPost(ctx).Data(data).Execute()
UserRegisterByEmail
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)
func main() {
data := *openapiclient.NewSchemaUserRegisterReq("EMail_example", "Name_example", "Pass_example") // SchemaUserRegisterReq | UserRegisterReq
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserApi.AnswerApiV1UserRegisterEmailPost(context.Background()).Data(data).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserApi.AnswerApiV1UserRegisterEmailPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AnswerApiV1UserRegisterEmailPost`: AnswerApiV1UserEmailVerificationPost200Response
fmt.Fprintf(os.Stdout, "Response from `UserApi.AnswerApiV1UserRegisterEmailPost`: %v\n", resp)
}
Path Parameters
Other Parameters
Other parameters are passed through a pointer to a apiAnswerApiV1UserRegisterEmailPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| data | SchemaUserRegisterReq | UserRegisterReq |
Return type
AnswerApiV1UserEmailVerificationPost200Response
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]