dtable-web-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -428,2 +428,25 @@ "use strict"; | ||
} | ||
}, { | ||
key: "getTableFormShareLink", | ||
value: function getTableFormShareLink(workspaceID, dtableName, formId) { | ||
var params = 'workspace_id=' + workspaceID + '&name=' + encodeURIComponent(dtableName) + '&form_id=' + formId; | ||
var url = this.server + '/api/v2.1/dtable-form-links/?' + params; | ||
return this.req.get(url); | ||
} | ||
}, { | ||
key: "createTableFormShareLink", | ||
value: function createTableFormShareLink(workspaceID, dtableName, formId) { | ||
var url = this.server + '/api/v2.1/dtable-form-links/'; | ||
var form = new _formData["default"](); | ||
form.append('workspace_id', workspaceID); | ||
form.append('name', dtableName); | ||
form.append('form_id', formId); | ||
return this._sendPostRequest(url, form); | ||
} | ||
}, { | ||
key: "deleteTableFormShareLink", | ||
value: function deleteTableFormShareLink(token) { | ||
var url = this.server + '/api/v2.1/dtable-form-links/' + token + '/'; | ||
return this.req["delete"](url); | ||
} | ||
}]); | ||
@@ -430,0 +453,0 @@ |
{ | ||
"name": "dtable-web-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "an interface for dtable-web", | ||
@@ -5,0 +5,0 @@ "main": "lib/dtable-web-api.js", |
@@ -329,4 +329,25 @@ import axios from 'axios'; | ||
getTableFormShareLink(workspaceID, dtableName, formId) { | ||
let params = 'workspace_id=' + workspaceID + '&name=' + encodeURIComponent(dtableName) + '&form_id=' + formId; | ||
let url = this.server + '/api/v2.1/dtable-form-links/?' + params; | ||
return this.req.get(url); | ||
} | ||
createTableFormShareLink(workspaceID, dtableName, formId) { | ||
let url = this.server + '/api/v2.1/dtable-form-links/'; | ||
let form = new FormData(); | ||
form.append('workspace_id', workspaceID); | ||
form.append('name', dtableName); | ||
form.append('form_id', formId); | ||
return this._sendPostRequest(url, form); | ||
} | ||
deleteTableFormShareLink(token) { | ||
let url = this.server + '/api/v2.1/dtable-form-links/' + token + '/'; | ||
return this.req.delete(url); | ||
} | ||
} | ||
export default DTableWebAPI; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28498
723