Docusign-无法从Android信封获取签名图像

问题描述

嗨,我正在使用此api(/restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/recipients/{recipientId}/signature_image)从Web,IOS和Android创建的信封中获取签名图像但如果是android,我会收到此响应404,但它存在于完整列表中的docusign帐户信封中

{ “ errorCode”:“ RESOURCE_NOT_FOUND”, “ message”:“提供的URL无法解析为资源。” }

这是代码

公共函数getSignature(){

$ch = curl_init();

curl_setopt($ch,CURLOPT_URL,'https://demo.docusign.net/restapi/v2.1/accounts/account_id/envelopes/envelope_id/recipients/recipient_id/signature_image');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);



$headers = array();
$headers[] = 'Content-Type: image/gif';
$headers[] = 'Accept: image/gif';
$headers[] = 'Authorization: Bearer JWT Token';
curl_setopt($ch,CURLOPT_HTTPHEADER,$headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
  echo 'Error:' . curl_error($ch);
}
curl_close($ch);

if (strpos($result,'errorCode') !== false) {
return $result;

}

return $response['data'] = $result;
// return view('signature',$response);

}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)