Skip to content

Latest commit

 

History

History
142 lines (88 loc) · 3.87 KB

UserInfoEndpointApi.md

File metadata and controls

142 lines (88 loc) · 3.87 KB

\UserInfoEndpointApi

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

AuthUserinfoApi

UserinfoResponse AuthUserinfoApi(ctx).UserinfoRequest(userinfoRequest).Execute()

/api/auth/userinfo API

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAuthUserinfoApiRequest struct via the builder pattern

Name Type Description Notes
userinfoRequest UserinfoRequest

Return type

UserinfoResponse

Authorization

ServiceCredentials

HTTP request headers

  • 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]

AuthUserinfoIssueApi

UserinfoIssueResponse AuthUserinfoIssueApi(ctx).UserinfoIssueRequest(userinfoIssueRequest).Execute()

/api/auth/userinfo/issue API

Example

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)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiAuthUserinfoIssueApiRequest struct via the builder pattern

Name Type Description Notes
userinfoIssueRequest UserinfoIssueRequest

Return type

UserinfoIssueResponse

Authorization

ServiceCredentials

HTTP request headers

  • 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]