Skip to content

Commit 750920e

Browse files
committed
update
1 parent 4299450 commit 750920e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/dtable-web-api.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,18 +1649,18 @@ class DTableWebAPI {
16491649
return this._sendPostRequest(url, data, { headers: { 'Content-Type': 'application/json' } });
16501650
}
16511651

1652-
getThirdPartyAccountsDetail(dtableUuid, account_id) {
1653-
let url = this.server + '/api/v2.1/third-party-accounts/' + dtableUuid + '/' + account_id + '/';
1652+
getThirdPartyAccountsDetail(workspace_id, account_id) {
1653+
let url = this.server + '/api/v2.1/workspace/ ' + workspace_id + '/third-party-accounts/' + account_id + '/';
16541654
return this.req.get(url);
16551655
}
16561656

1657-
listThirdPartyAccounts(dtableUuid) {
1658-
let url = this.server + '/api/v2.1/third-party-accounts/' + dtableUuid + '/';
1657+
listThirdPartyAccounts(workspace_id) {
1658+
let url = this.server + '/api/v2.1/workspace/' + workspace_id + '/third-party-accounts/';
16591659
return this.req.get(url);
16601660
}
16611661

1662-
addThirdPartyAccount(dtableUuid, account_name, accout_type, detail) {
1663-
let url = this.server + '/api/v2.1/third-party-accounts/' + dtableUuid + '/';
1662+
addThirdPartyAccount(workspace_id, account_name, accout_type, detail) {
1663+
let url = this.server + '/api/v2.1/workspace/' + workspace_id + '/third-party-accounts/';
16641664
let data = {
16651665
'account_name': account_name,
16661666
'account_type': accout_type,
@@ -1669,8 +1669,8 @@ class DTableWebAPI {
16691669
return this._sendPostRequest(url, data, { headers: { 'Content-Type': 'application/json' } });
16701670
}
16711671

1672-
updateThirdPartyAccount(dtableUuid, account_id, account_name, account_type, detail) {
1673-
let url = this.server + '/api/v2.1/third-party-accounts/' + dtableUuid + '/' + account_id + '/';
1672+
updateThirdPartyAccount(workspace_id, account_id, account_name, account_type, detail) {
1673+
let url = this.server + '/api/v2.1/workspace/ ' + workspace_id + '/third-party-accounts/' + account_id + '/';
16741674
let data = {
16751675
'account_name': account_name,
16761676
'account_type': account_type,
@@ -1679,8 +1679,8 @@ class DTableWebAPI {
16791679
return this.req.put(url, data, { headers: { 'Content-Type': 'application/json' } });
16801680
}
16811681

1682-
deleteThirdPartyAccount(dtableUuid, account_id) {
1683-
let url = this.server + '/api/v2.1/third-party-accounts/' + dtableUuid + '/' + account_id + '/';
1682+
deleteThirdPartyAccount(workspace_id, account_id) {
1683+
let url = this.server + '/api/v2.1/workspace/ ' + workspace_id + '/third-party-accounts/' + account_id + '/';
16841684
return this.req.delete(url);
16851685
}
16861686

0 commit comments

Comments
 (0)