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

IWitVRequest Interface

Extends IVRequest
Interface for wit specific requests

Member Functions

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
Did you find this page helpful?
Thumbs up icon
Thumbs down icon