SpellCheckClient class

Extends

Constructors

SpellCheckClient(ServiceClientCredentials, SpellCheckClientOptions)

Initializes a new instance of the SpellCheckClient class.

Inherited Properties

credentials
endpoint

Methods

spellChecker(string, ServiceCallback<SpellCheck>)
spellChecker(string, SpellCheckClientSpellCheckerOptionalParams)
spellChecker(string, SpellCheckClientSpellCheckerOptionalParams, ServiceCallback<SpellCheck>)

Inherited Methods

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Send an HTTP request that is populated using the provided OperationSpec.

sendRequest(RequestPrepareOptions | WebResourceLike)

Send the provided httpRequest.

Constructor Details

SpellCheckClient(ServiceClientCredentials, SpellCheckClientOptions)

Initializes a new instance of the SpellCheckClient class.

new SpellCheckClient(credentials: ServiceClientCredentials, options?: SpellCheckClientOptions)

Parameters

credentials
ServiceClientCredentials

Subscription credentials which uniquely identify client subscription.

options
SpellCheckClientOptions

The parameter options

Inherited Property Details

credentials

credentials: ServiceClientCredentials

Property Value

Inherited From SpellCheckClientContext.credentials

endpoint

endpoint?: string

Property Value

string

Inherited From SpellCheckClientContext.endpoint

Method Details

spellChecker(string, ServiceCallback<SpellCheck>)

function spellChecker(text: string, callback: ServiceCallback<SpellCheck>)

Parameters

text

string

The text string to check for spelling and grammar errors. The combined length of the text string, preContextText string, and postContextText string may not exceed 10,000 characters. You may specify this parameter in the query string of a GET request or in the body of a POST request. Because of the query string length limit, you'll typically use a POST request unless you're checking only short strings.

callback

ServiceCallback<SpellCheck>

The callback

spellChecker(string, SpellCheckClientSpellCheckerOptionalParams)

function spellChecker(text: string, options?: SpellCheckClientSpellCheckerOptionalParams): Promise<SpellCheckerResponse>

Parameters

text

string

The text string to check for spelling and grammar errors. The combined length of the text string, preContextText string, and postContextText string may not exceed 10,000 characters. You may specify this parameter in the query string of a GET request or in the body of a POST request. Because of the query string length limit, you'll typically use a POST request unless you're checking only short strings.

options
SpellCheckClientSpellCheckerOptionalParams

The optional parameters

Returns

Promise<Models.SpellCheckerResponse>

spellChecker(string, SpellCheckClientSpellCheckerOptionalParams, ServiceCallback<SpellCheck>)

function spellChecker(text: string, options: SpellCheckClientSpellCheckerOptionalParams, callback: ServiceCallback<SpellCheck>)

Parameters

text

string

The text string to check for spelling and grammar errors. The combined length of the text string, preContextText string, and postContextText string may not exceed 10,000 characters. You may specify this parameter in the query string of a GET request or in the body of a POST request. Because of the query string length limit, you'll typically use a POST request unless you're checking only short strings.

options
SpellCheckClientSpellCheckerOptionalParams

The optional parameters

callback

ServiceCallback<SpellCheck>

The callback

Inherited Method Details

sendOperationRequest(OperationArguments, OperationSpec, ServiceCallback<any>)

Send an HTTP request that is populated using the provided OperationSpec.

function sendOperationRequest(operationArguments: OperationArguments, operationSpec: OperationSpec, callback?: ServiceCallback<any>): Promise<RestResponse>

Parameters

operationArguments
OperationArguments

The arguments that the HTTP request's templated values will be populated from.

operationSpec
OperationSpec

The OperationSpec to use to populate the httpRequest.

callback

ServiceCallback<any>

The callback to call when the response is received.

Returns

Promise<RestResponse>

Inherited From SpellCheckClientContext.sendOperationRequest

sendRequest(RequestPrepareOptions | WebResourceLike)

Send the provided httpRequest.

function sendRequest(options: RequestPrepareOptions | WebResourceLike): Promise<HttpOperationResponse>

Parameters

Returns

Inherited From SpellCheckClientContext.sendRequest