TopicCredentials class

Authenticates to a service using an API key.

Extends

Constructors

TopicCredentials(string)

Creates a new EventGrid TopicCredentials object.

Inherited Methods

signRequest(WebResourceLike)

Signs a request with the values provided in the inHeader and inQuery parameter.

Constructor Details

TopicCredentials(string)

Creates a new EventGrid TopicCredentials object.

new TopicCredentials(topicKey: string)

Parameters

topicKey

string

The EventGrid topic key

Inherited Method Details

signRequest(WebResourceLike)

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.

Inherited From ApiKeyCredentials.signRequest