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

WitVRequest Class

Extends VRequest, IWitVRequest

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
Override base class to ensure configuration is correct
Get request to a wit endpoint
Parameters
endpoint
The wit endpoint for the request. Ex. 'synthesize'
urlParameters
Any parameters to be added to the url prior to request.
onPartial
If provided, this will call back for every incremental json chunk.
Returns
An awaitable task thar contains the final decoded json results
Post request to a wit endpoint
Parameters
endpoint
The wit endpoint for the request. Ex. 'synthesize'
urlParameters
Any parameters to be added to the url prior to request.
payload
Text data that will be uploaded via post.
onPartial
If provided, this will call back for every incremental json chunk.
Returns
An awaitable task thar contains the final decoded json results
Put request to a wit endpoint
Parameters
endpoint
The wit endpoint for the request. Ex. 'synthesize'
urlParameters
Any parameters to be added to the url prior to request.
payload
Text data that will be uploaded via put.
onPartial
If provided, this will call back for every incremental json chunk.
Returns
An awaitable task thar contains the final decoded json results

Protected Functions

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