1.7 KiB
1.7 KiB
\AuthAPI
All URIs are relative to https://api.partner.market.yandex.ru
| Method | HTTP request | Description |
|---|---|---|
| GetAuthTokenInfo | Post /auth/token | Получение информации об авторизационном токене |
GetAuthTokenInfo
GetTokenInfoResponse GetAuthTokenInfo(ctx).Execute()
Получение информации об авторизационном токене
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.AuthAPI.GetAuthTokenInfo(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `AuthAPI.GetAuthTokenInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAuthTokenInfo`: GetTokenInfoResponse
fmt.Fprintf(os.Stdout, "Response from `AuthAPI.GetAuthTokenInfo`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiGetAuthTokenInfoRequest struct via the builder pattern
Return type
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]