PHP Docusign Api获取模板 [英] PHP Docusign Api get template

查看:124
本文介绍了PHP Docusign Api获取模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下代码获取了已经拥有的文件模板,但是我总是收到错误-失败:SSL证书问题:无法获取本地颁发者证书。

I used the following code to get the docusign templstes i already have, however i am always getting the error - failed: SSL certificate problem: unable to get local issuer certificate.

$templateApi = new DocuSign\eSign\Api\TemplatesApi();
$getTemplate = $templateApi->get($accountId, $contract_template_id);

我的代码正确还是其他可能引起问题的东西?

Is my code correct or is it something else that could cause the problem?

推荐答案

我怀疑您的服务器已经过自我认证,或者没有SSL / HHTPS /端口443设置。

I suspect your server is either self certed or is doesn't have SSL/ HHTPS / port 443 setup.

请参阅StackOverflow问题并在此处回答 Docusign API调用错误PHP

See the StackOverflow issue and Answer here Docusign API call errors PHP

我真的建议您使用PostMan Client和/或SoapUI验证您可以拨打电话并看到返回的实际错误,因为它将详细说明以下内容中的最常见问题。响应。 PostMan或SoapUI将成功发出实际的API调用(一旦您通过prod API认证,将显示为Demo或Prod),向您显示实际的响应,而不必担心编码错字,对象属性或调试日志以查看真正返回的信息。

I really suggest using PostMan Client and / or SoapUI to validate you can make the call and see the actual error returned, as it will say more about the most common issues in the response. PostMan or SoapUI will issue the actual API calls successfully (Demo or Prod once you have passed prod API certification) showing you the actual response without having to worry about coding typo's, properties of objects or debugging logging to see what really came back.

这可以让您在使用PHP SDK时学习DocuSign API。您做了正确的事情在Stack Overflow上寻求帮助。

This allows you to learn the DocuSign API while using the PHP SDK. You did the right thing asking for help here on Stack Overflow.

我有几个链接供您入门:

I have a couple links for you to get started:

DocuSign开发人员中心,您可能在其中找到了PHP SDK https:// developers.docusign.com/esign-rest-api/sdk-tools

DocuSign Developer Center where you probably found the PHP SDK https://developers.docusign.com/esign-rest-api/sdk-tools

有关PostMan信息的链接(较旧的版本,您可以获得最新的- aka Orange Rocket Man徽标vs蓝色世界,适用于Chrome或Mac独立版- https://blog.grigsbyconsultingllc.com/postman-rest-client-a-google-chrome-app/

Link for info on PostMan (older version, you can get the latest one - aka Orange Rocket Man logo vs blue world, for Chrome or Mac Standalone - https://blog.grigsbyconsultingllc.com/postman-rest-client-a-google-chrome-app/

X-DocuSign-Authentication StackOverflow上的标题Q& A标题X-DocuSign-Authentication应该如何用于REST和SOAP?

X-DocuSign-Authentication Header Q&A on StackOverflow How should the header X-DocuSign-Authentication be used for REST and SOAP?

我喜欢DocuSign API资源管理器的概念,可悲的是它对产品不利,所以y从演示过渡到产品时,您仍然必须使用其他东西。

I like the concept of the DocuSign API explorer to start with, sad part is it doesn't work against prod, so you still have to use something else when you move from demo to prod.

祝您好运,并享受您的DocuSign API之旅!

Best of Luck and Enjoy your DocuSign API journey!

这篇关于PHP Docusign Api获取模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆