kobotoolbox@1.3.2
Functions
- execute(operations) ⇒
Operation
Execute a sequence of operations. Wraps
language-common/execute
, and prepends initial state for http.- getForms(params, callback) ⇒
Operation
Make a request to get the list of forms
- getSubmissions(params, callback) ⇒
Operation
Get submissions for a specific form
- getDeploymentInfo(params, callback) ⇒
Operation
Get deployment information for a specific form
execute(operations) ⇒ Operation
Execute a sequence of operations.
Wraps language-common/execute
, and prepends initial state for http.
Kind: global function
Param | Type | Description |
---|---|---|
operations | Operations | Operations to be performed. |
Example
execute(
create('foo'),
delete('bar')
)(state)
getForms(params, callback) ⇒ Operation
Make a request to get the list of forms
Kind: global function
Access: public
Param | Type | Description |
---|---|---|
params | object | Query, Headers and Authentication parameters |
callback | function | (Optional) Callback function to execute after fetching form list |
Example
getForms({}, state => {
console.log(state.data);
return state;
});
getSubmissions(params, callback) ⇒ Operation
Get submissions for a specific form
Kind: global function
Param | Type | Description |
---|---|---|
params | object | Form Id and data to make the fetch or filter |
callback | function | (Optional) Callback function to execute after fetching form submissions |
Example
getSubmissions({formId: 'aXecHjmbATuF6iGFmvBLBX'}, state => {
console.log(state.data);
return state;
});
getDeploymentInfo(params, callback) ⇒ Operation
Get deployment information for a specific form
Kind: global function
Param | Type | Description |
---|---|---|
params | object | Form Id and data to make the fetch or filter |
callback | function | (Optional) Callback function to execute after fetching form deployment information |
Example
getDeploymentInfo({formId: 'aXecHjmbATuF6iGFmvBLBX'}, state => {
console.log(state.data);
return state;
});