ApiKeyCredentials class
Authenticates to a service using an API key.
sign |
Signs a request with the values provided in the inHeader and inQuery parameter. |
new ApiKeyCredentials(options: ApiKeyCredentialOptions)
Parameters
- options
- ApiKeyCredentialOptions
Specifies the options to be provided for auth. Either header or query needs to be provided.
Signs a request with the values provided in the inHeader and inQuery parameter.
function signRequest(webResource: WebResourceLike): Promise<WebResourceLike>
Parameters
- webResource
- WebResourceLike
The WebResource to be signed.
Returns
Promise<WebResourceLike>
The signed request object.