Class IntrospectRequestBuilder
- Namespace
- Autodesk.Authentication.Authentication.V2.Introspect
- Assembly
- Autodesk.Authentication.dll
Builds and executes requests for operations under \authentication\v2\introspect
public class IntrospectRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderIntrospectRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
IntrospectRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new IntrospectRequestBuilder and sets the default values.
public IntrospectRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)
Parameters
pathParameters
Dictionary<string, object>Path parameters for the request
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
IntrospectRequestBuilder(string, IRequestAdapter)
Instantiates a new IntrospectRequestBuilder and sets the default values.
public IntrospectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
Parameters
rawUrl
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
Methods
PostAsync(IntrospectPostRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Examines an access token including the reference token and returns the status information of the tokens.If the token is active, additional information is returned.If the token is expired, invalid or revoked, it returns the response as status: inactive.
public Task<Introspecttoken?> PostAsync(IntrospectPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
IntrospectPostRequestBodyThe request body
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- Introspecttoken400Error
When receiving a 400 status code
ToPostRequestInformation(IntrospectPostRequestBody, Action<RequestConfiguration<DefaultQueryParameters>>?)
Examines an access token including the reference token and returns the status information of the tokens.If the token is active, additional information is returned.If the token is expired, invalid or revoked, it returns the response as status: inactive.
public RequestInformation ToPostRequestInformation(IntrospectPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
IntrospectPostRequestBodyThe request body
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
WithUrl(string)
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
public IntrospectRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.