dtable-web-api
Advanced tools
Comparing version 1.0.47 to 1.0.48
@@ -624,8 +624,9 @@ "use strict"; | ||
key: "sysAdminAddOrg", | ||
value: function sysAdminAddOrg(orgName, ownerEmail, owner_password) { | ||
value: function sysAdminAddOrg(orgName, adminEmail, adminName, password) { | ||
var url = this.server + '/api/v2.1/admin/organizations/'; | ||
var formData = new _formData["default"](); | ||
formData.append('org_name', orgName); | ||
formData.append('owner_email', ownerEmail); | ||
formData.append('owner_password', owner_password); | ||
formData.append('admin_email', adminEmail); | ||
formData.append('admin_name', adminName); | ||
formData.append('password', password); | ||
return this._sendPostRequest(url, formData); | ||
@@ -632,0 +633,0 @@ } |
{ | ||
"name": "dtable-web-api", | ||
"version": "1.0.47", | ||
"version": "1.0.48", | ||
"description": "an interface for dtable-web", | ||
@@ -5,0 +5,0 @@ "main": "lib/dtable-web-api.js", |
@@ -502,8 +502,9 @@ import axios from 'axios'; | ||
sysAdminAddOrg(orgName, ownerEmail, owner_password) { | ||
sysAdminAddOrg(orgName, adminEmail, adminName, password) { | ||
const url = this.server + '/api/v2.1/admin/organizations/'; | ||
let formData = new FormData(); | ||
formData.append('org_name', orgName); | ||
formData.append('owner_email', ownerEmail); | ||
formData.append('owner_password', owner_password); | ||
formData.append('admin_email', adminEmail); | ||
formData.append('admin_name', adminName); | ||
formData.append('password', password); | ||
return this._sendPostRequest(url, formData); | ||
@@ -510,0 +511,0 @@ } |
81952
2189