我正在尝试使用python docusign_design api访问apiTemplateViews : createEdit
,如下所示
api_client = ApiClient(header_name="Authorization", header_value=f"Bearer {access_token}",
host="https://demo.docusign.net/restapi/")
TemplatesApi(api_client).create_edit_view(account_id=account_id, template_id=template_id)
在访问create_edit_view时,我得到的错误是
"errorCode":"INVALID_REQUEST_BODY","message":"The request body is missing or improperly formatted."
当在API资源管理器中选中时,我能够正确地获得响应URL。我发现只有accountId和templateId是必需的访问api,我错过了别的东西吗?
https://developers.docusign.com/docs/esign-rest-api/sdk-tools/python/reference/docusign_esign/apis/templates_api.html#docusign_esign.apis.templates_api.TemplatesApi.create_edit_view
你需要提供一个return_url
,这是一个URL,当你的嵌入式发送者完成编辑/创建模板时,它将被重定向回。
这是一个POST,该URL以JSON形式在正文中提供,而不是在URL中作为参数提供。
https://developers.docusign.com/docs/esign-rest-api/reference/templates/templateviews/createedit/