All URIs are relative to https://api.authlete.com
Method | HTTP request | Description |
---|---|---|
AuthUserinfoApi | Post /api/auth/userinfo | /api/auth/userinfo API |
AuthUserinfoIssueApi | Post /api/auth/userinfo/issue | /api/auth/userinfo/issue API |
UserinfoResponse AuthUserinfoApi(ctx).UserinfoRequest(userinfoRequest).Execute()
/api/auth/userinfo API
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userinfoRequest := *openapiclient.NewUserinfoRequest("Token_example") // UserinfoRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserInfoEndpointApi.AuthUserinfoApi(context.Background()).UserinfoRequest(userinfoRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserInfoEndpointApi.AuthUserinfoApi``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AuthUserinfoApi`: UserinfoResponse
fmt.Fprintf(os.Stdout, "Response from `UserInfoEndpointApi.AuthUserinfoApi`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAuthUserinfoApiRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
userinfoRequest | UserinfoRequest |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserinfoIssueResponse AuthUserinfoIssueApi(ctx).UserinfoIssueRequest(userinfoIssueRequest).Execute()
/api/auth/userinfo/issue API
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
userinfoIssueRequest := *openapiclient.NewUserinfoIssueRequest("Token_example") // UserinfoIssueRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UserInfoEndpointApi.AuthUserinfoIssueApi(context.Background()).UserinfoIssueRequest(userinfoIssueRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UserInfoEndpointApi.AuthUserinfoIssueApi``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AuthUserinfoIssueApi`: UserinfoIssueResponse
fmt.Fprintf(os.Stdout, "Response from `UserInfoEndpointApi.AuthUserinfoIssueApi`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiAuthUserinfoIssueApiRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
userinfoIssueRequest | UserinfoIssueRequest |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]