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

IWitVRequest Interface

Extends Meta.WitAi.Requests.IVRequest
Interface for wit specific requests

Methods

RequestWitGet< TValue > ( endpoint , urlParameters , onPartial )
Get request to a wit endpoint
Signature
Task<VRequestResponse<TValue> > Meta.WitAi.Requests.IWitVRequest.RequestWitGet< TValue >(string endpoint, Dictionary< string, string > urlParameters, Action< TValue > onPartial=null)
Parameters
endpoint: string  The wit endpoint for the request. Ex. 'synthesize'
urlParameters: Dictionary< string, string >  Any parameters to be added to the url prior to request.
onPartial: Action< TValue >  If provided, this will call back for every incremental json chunk.
Returns
Task< VRequestResponse< TValue > >  An awaitable task thar contains the final decoded json results
RequestWitPost< TValue > ( endpoint , urlParameters , payload , onPartial )
Post request to a wit endpoint
Signature
Task<VRequestResponse<TValue> > Meta.WitAi.Requests.IWitVRequest.RequestWitPost< TValue >(string endpoint, Dictionary< string, string > urlParameters, string payload, Action< TValue > onPartial=null)
Parameters
endpoint: string  The wit endpoint for the request. Ex. 'synthesize'
urlParameters: Dictionary< string, string >  Any parameters to be added to the url prior to request.
payload: string  Text data that will be uploaded via post.
onPartial: Action< TValue >  If provided, this will call back for every incremental json chunk.
Returns
Task< VRequestResponse< TValue > >  An awaitable task thar contains the final decoded json results
RequestWitPut< TValue > ( endpoint , urlParameters , payload , onPartial )
Put request to a wit endpoint
Signature
Task<VRequestResponse<TValue> > Meta.WitAi.Requests.IWitVRequest.RequestWitPut< TValue >(string endpoint, Dictionary< string, string > urlParameters, string payload, Action< TValue > onPartial=null)
Parameters
endpoint: string  The wit endpoint for the request. Ex. 'synthesize'
urlParameters: Dictionary< string, string >  Any parameters to be added to the url prior to request.
payload: string  Text data that will be uploaded via put.
onPartial: Action< TValue >  If provided, this will call back for every incremental json chunk.
Returns
Task< VRequestResponse< TValue > >  An awaitable task thar contains the final decoded json results