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

WitSyncVRequest Class

Extends WitVRequest, IWitSyncVRequest

Member Functions

Constructor for wit based editor data sync VRequests
Parameters
configuration
The configuration interface to be used
onDownloadProgress
The callback for progress related to downloading
onFirstResponse
The callback for the first response of data from a request
Submits an intent to be added to the current wit app
Parameters
intentInfo
The intent data to be submitted
onComplete
On completion that returns an intent with unique id if successful
Returns
False if fails to make request
Submits an entity to be added to the current wit app
Parameters
entityInfo
The entity info to be submitted
onComplete
On completion that returns an entity with unique id if successful
Returns
False if fails to make request
Submits a keyword to be added to an entity on the current wit app
Parameters
entityId
The entity this keyword should be added to
keywordInfo
The keyword and synonyms submitted
onComplete
On completion that returns updated entity if successful
Returns
False if fails to make request
Submits a synonym to be added to a keyword on the specified entity on the current wit app
Parameters
entityId
The entity that holds the keyword
keyword
The keyword we're adding the synonym to
synonym
The synonym we're adding
onComplete
On completion that returns updated entity if successful
Returns
False if fails to make request
Submits a trait to be added to the current wit app
Parameters
traitInfo
The trait data to be submitted
onComplete
On completion that returns a trait with unique id if successful
Returns
False if fails to make request
Submits a trait value to be added to the current wit app
Parameters
traitId
The trait id to be submitted
traitValue
The trait value to be submitted
onComplete
On completion callback that returns updated trait if successful
Returns
False if fails to make request
Import app data from generated manifest JSON
Parameters
config
appName
The name of the app as it is defined in wit.ai
manifestData
The serialized manifest to import from
Returns
Built request object
Did you find this page helpful?
Thumbs up icon
Thumbs down icon