@@ -1649,18 +1649,18 @@ class DTableWebAPI {
1649
1649
return this . _sendPostRequest ( url , data , { headers : { 'Content-Type' : 'application/json' } } ) ;
1650
1650
}
1651
1651
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 + '/' ;
1654
1654
return this . req . get ( url ) ;
1655
1655
}
1656
1656
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 /' ;
1659
1659
return this . req . get ( url ) ;
1660
1660
}
1661
1661
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 /' ;
1664
1664
let data = {
1665
1665
'account_name' : account_name ,
1666
1666
'account_type' : accout_type ,
@@ -1669,8 +1669,8 @@ class DTableWebAPI {
1669
1669
return this . _sendPostRequest ( url , data , { headers : { 'Content-Type' : 'application/json' } } ) ;
1670
1670
}
1671
1671
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 + '/' ;
1674
1674
let data = {
1675
1675
'account_name' : account_name ,
1676
1676
'account_type' : account_type ,
@@ -1679,8 +1679,8 @@ class DTableWebAPI {
1679
1679
return this . req . put ( url , data , { headers : { 'Content-Type' : 'application/json' } } ) ;
1680
1680
}
1681
1681
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 + '/' ;
1684
1684
return this . req . delete ( url ) ;
1685
1685
}
1686
1686
0 commit comments