API reference
API reference
Select your platform
No SDKs available
No versions available

WitVRequest Class

Extends VRequest

Public Statics

Uri customization delegate
Header customization delegate
User agent customization delegate

Properties

The unique identifier used by Wit to track requests
The configuration used for voice requests

Member Functions

Constructor that takes in a configuration interface
Parameters
configuration
The configuration interface to be used
requestId
A unique identifier that can be used to track the request
useServerToken
Editor only option to use server token instead of client token
onDownloadProgress
The callback for progress related to downloading
onFirstResponse
The callback for the first response of data from a request
Uri GetUri
( string path,
Dictionary< string, string > queryParams )
Perform a unity request with coroutines
Parameters
unityRequest
The request to be managed
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Initialize with a request & return an error if applicable
Parameters
unityRequest
The unity request to be performed
Returns
Any errors encountered during the request
Get request to a wit endpoint
Parameters
uriEndpoint
Endpoint name
uriParams
Endpoint url parameters
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Get request to a wit endpoint asynchronously
Parameters
uriEndpoint
Endpoint name
Returns
Returns the request complete data including a parsed result if possible
Post text request to a wit endpoint
Parameters
uriEndpoint
Endpoint name
uriParams
Endpoint url parameters
postText
Text to be sent to endpoint
onComplete
The callback delegate on request completion
onPartial
The callback delegate when a partial response is received
Returns
False if the request cannot be performed
Post request to a wit endpoint asynchronously
Parameters
uriEndpoint
Endpoint name
uriParams
Endpoint url parameters
postText
Text to be sent to endpoint
Returns
Returns the request complete data including a parsed result if possible
Put text request to a wit endpoint
Parameters
uriEndpoint
Endpoint name
uriParams
Endpoint url parameters
putText
Text to be sent to endpoint
onComplete
The delegate upon completion
onPartial
The callback delegate when a partial response is received
onProgress
The upload progress
Returns
False if the request cannot be performed
Put text request to a wit endpoint asynchronously
Parameters
uriEndpoint
Endpoint name
uriParams
Endpoint url parameters
putText
Text to be sent to endpoint
Returns
Returns the request complete data including a parsed result if possible

Protected Functions

virtual override Dictionary< string, string > GetHeaders ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon