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

IWitVRequest Interface

Properties

Timeout in seconds
If request is currently being performed
The configuration used for voice requests

Member Functions

Perform a generic request
Parameters
unityRequest
The unity request
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Clean the url prior to use
void Cancel ( )
Performs a simple http header request
Parameters
uri
onComplete
Called once header lookup has completed
Returns
Performs a simple http header request
Parameters
uri
Uri to get a file
onComplete
Called once file data has been loaded
Returns
False if cannot begin request
Download a file using a unityrequest
Parameters
unityRequest
The unity request to add a download handler to
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Checks if a file exists at a specified location
Parameters
checkPath
The local file path to be checked
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Performs a text request & handles the resultant text
Parameters
unityRequest
The unity request performing the post or get
onComplete
The callback delegate on request completion
onPartial
The callback delegate for text as it arrives
Returns
False if the request cannot be performed
Performs a json request & handles the resultant text
Parameters
unityRequest
The unity request performing the post or get
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Others
TData
The struct or class to be deserialized to
Perform a json get request with a specified uri
Parameters
uri
The uri to be requested
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Others
TData
The struct or class to be deserialized to
Performs a json request by posting byte data
Parameters
uri
The uri to be requested
postData
The data to be uploaded
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Others
TData
The struct or class to be deserialized to
Performs a json request by posting byte data
Parameters
uri
The uri to be requested
postText
The string to be uploaded
onComplete
The delegate upon completion
onProgress
The data upload progress
Others
TData
The struct or class to be deserialized to
Returns
False if the request cannot be performed
Performs a json request by posting byte data
Parameters
uri
The uri to be requested
putData
The data to be uploaded
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Others
TData
The struct or class to be deserialized to
Performs a json request by putting string
Parameters
uri
The uri to be requested
putText
The string to be uploaded
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Others
TData
The struct or class to be deserialized to
Uri GetUri
( string path,
Dictionary< string, string > queryParams )
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
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
Returns
False if the request cannot be performed
Put text request to a wit endpoint
Parameters
uriEndpoint
Endpoint name
uriParams
Endpoint url parameters
putText
Text to be sent to endpoint
onComplete
The callback delegate on request completion
Returns
False if the request cannot be performed
Did you find this page helpful?
Thumbs up icon
Thumbs down icon