需要使用REST API上传到DocuSign上传新品牌资料的.ZIP的结构和内容是什么?
POST https://{server}/restapi/{apiVersion}/accounts/{accountId}/brands
X-DocuSign-Authentication: <DocuSignCredentials><Username>{name}</Username><Password>{password}</Password><IntegratorKey>{integrator_key}</IntegratorKey></DocuSignCredentials>
Accept: application/json
Content-Type: application/zip
<base64bytes brand zip file removed for brevity>
当我发送(PHP + cURL)导出的主资源文件的zip存档时,它成功但创建了三个随机导入的品牌:
branding.zip
|__ DocuSign_EmailResources.xml
|__ DocuSign_SendResources.xml
|__ DocuSign_SignResources.xml
我还试图在DocuSign开发者控制台中导出以前创建的品牌(下面的截断示例):
<Brand><BrandId>ce173f6e-3549-4494-a8ea-f8f33a0dba64</BrandId><BrandName>ExampleBrand</BrandName><CompanyName>Example Co. Ltd</CompanyName><BackgroundColor>#F3F3F3</BackgroundColor><BackgroundTextColor>#FFFFFF</BackgroundTextColor> [TRUNCATED]
完整的品牌XML可在此处获取: https://gist.github.com/anonymous/022b3d1491a27e75f3ac
然后从该单个XML文件创建存档。
branding.zip
|__ Brand_ExampleBrand.xml
使用API上传时会导致此错误:
BRAND_CREATE_FAILED: Brands could not be created. Unable to upload brand Brand_ExampleBrand.xml, error: Could not find any recognizable digits.
使用此端点的正确方法是什么?