donglao9606 2014-05-29 18:39
浏览 112
已采纳

使用REST API进行Docusign实时帐户身份验证无效

I am new on Docusign. I have developed a application using REST API on PHP language. In demo account everything is working fine. But in live account does not working. Error is calling webservice and status is 0. I tried many way but can't solve. Please help me. My code for authentication is given below.

$integratorKey = 'xxxxxx';
    $email = 'xxxx';
    $password = 'xxxx';

    // construct the authentication header:
    $header = "<DocuSignCredentials><Username>" . $email . "</Username><Password>" . $password . "</Password><IntegratorKey>" . $integratorKey . "</IntegratorKey></DocuSignCredentials>";


    $url = "https://www.docusign.net/restapi/v2/login_information";
    $curl = curl_init($url);
    curl_setopt($curl, CURLOPT_HEADER, false);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_HTTPHEADER, array("X-DocuSign-Authentication: $header"));

    $json_response = curl_exec($curl);
    $status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
    //echo $status;
    if ( $status != 200 ) {
        echo "error calling webservice, status is:" . $status;
        exit(-1);
    }

    $response = json_decode($json_response, true);
    $accountId = $response["loginAccounts"][0]["accountId"];
    $baseUrl = $response["loginAccounts"][0]["baseUrl"];
    curl_close($curl);
  • 写回答

1条回答 默认 最新

  • dslf46995 2014-05-29 18:53
    关注

    Have you completed the DocuSign API Certification process yet? Your integration will not work against a Production DocuSign account until you've completed the API Certification process and DocuSign has approved your Integrator Key for use in the Production environment. (The main purpose of the certification process is for DocuSign to ensure that your integration isn't doing anything that would be harmful to the Production environment, and to ensure that you're able to produce API request/response information from your app, in case you ever need help from DocuSign support in the future -- once you "pass/complete" certification, DocuSign will enable your Integrator Key for use in Production.)

    The DocuSign Developer Center (https://www.docusign.com/developer-center) contains information about the API Certification process. In particular, check out the links in "Go Live" section:

    DS Dev Center Go Live

    The Go Live - Overview page is a good starting point: https://www.docusign.com/developer-center/go-live/overview

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?
  • ¥15 matlab(相关搜索:紧聚焦)
  • ¥15 基于51单片机的厨房煤气泄露检测报警系统设计
  • ¥15 Arduino无法同时连接多个hx711模块,如何解决?