-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #982 from OpenFn/feature/943-kobo-api
kobotoolbox: implement automatic pagination and change API signature
- Loading branch information
Showing
7 changed files
with
384 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'@openfn/language-kobotoolbox': major | ||
--- | ||
|
||
Update all functions in the main API | ||
|
||
## Migration guide | ||
|
||
- callbacks have removed from all functions. You can use `.then()` or `fn()` to | ||
access the data returned by a function, ie, `getForms().then(state => state)` | ||
- `getForms(params, callback)` is now `getForms()`, and will download download | ||
assets of type survey. Use `http.get('assets/')` to retrieve other assets (and | ||
add query parameters) | ||
- `getSubmissions(params, callback)` is now `getSubmissions(formId, { query })`. | ||
- `getDeploymentInfo(params, callback)` is now `getDeploymentInfo(formId)` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.