update type
This commit is contained in:
@@ -97,7 +97,7 @@ class SmartSheet:
|
||||
return True
|
||||
return False
|
||||
|
||||
def add_fields(self, fields: list[dict]):
|
||||
def add_fields(self, fields: list):
|
||||
url = "https://a.cmdp.cn/umss/v1/wxw/common/submit"
|
||||
body = {
|
||||
"url": "https://qyapi.weixin.qq.com/cgi-bin/wedoc/smartsheet/add_fields",
|
||||
@@ -110,7 +110,7 @@ class SmartSheet:
|
||||
}
|
||||
return self._post(url, body)
|
||||
|
||||
def delete_field(self, field_ids: list[str]):
|
||||
def delete_field(self, field_ids: list):
|
||||
url = "https://a.cmdp.cn/umss/v1/wxw/common/submit"
|
||||
body = {
|
||||
"url": "https://qyapi.weixin.qq.com/cgi-bin/wedoc/smartsheet/delete_fields",
|
||||
@@ -269,7 +269,7 @@ class SmartTableApi:
|
||||
return resp.json()
|
||||
return {}
|
||||
|
||||
def create(self, doc_name: str, admin_users: list[str]):
|
||||
def create(self, doc_name: str, admin_users: list):
|
||||
url = "https://a.cmdp.cn/umss/v1/wxw/addDocument"
|
||||
body = {
|
||||
"doc_type": 10,
|
||||
|
Reference in New Issue
Block a user