dtable-web-api
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -458,2 +458,11 @@ "use strict"; | ||
}, { | ||
key: "submitFormData", | ||
value: function submitFormData(token, table_id, row_data) { | ||
var url = this.server + '/api/v2.1/dtable-form-submit/' + token + '/'; | ||
var form = new _formData["default"](); | ||
form.append('table_id', table_id); | ||
form.append('row_data', row_data); | ||
return this._sendPostRequest(url, form); | ||
} | ||
}, { | ||
key: "listGroups", | ||
@@ -460,0 +469,0 @@ value: function listGroups() { |
{ | ||
"name": "dtable-web-api", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "an interface for dtable-web", | ||
@@ -5,0 +5,0 @@ "main": "lib/dtable-web-api.js", |
@@ -355,2 +355,10 @@ import axios from 'axios'; | ||
submitFormData(token, table_id, row_data) { | ||
const url = this.server + '/api/v2.1/dtable-form-submit/' + token + '/'; | ||
let form = new FormData(); | ||
form.append('table_id', table_id); | ||
form.append('row_data', row_data); | ||
return this._sendPostRequest(url, form); | ||
} | ||
listGroups(withRepos = false) { | ||
@@ -357,0 +365,0 @@ let options = {with_repos: withRepos ? 1 : 0}; |
40689
1067