php - Docusign live account authentication using REST API not working -


i new on docusign. have developed application using rest api on php language. in demo account working fine. in live account not working. error calling webservice , status 0. tried many way can't solve. please me. code authentication given below.

$integratorkey = 'xxxxxx';     $email = 'xxxx';     $password = 'xxxx';      // construct 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); 

have completed docusign api certification process yet? integration not work against production docusign account until you've completed api certification process , docusign has approved integrator key use in production environment. (the main purpose of certification process docusign ensure integration isn't doing harmful production environment, , ensure you're able produce api request/response information app, in case ever need docusign support in future -- once "pass/complete" certification, docusign enable integrator key use in production.)

the docusign developer center (https://www.docusign.com/developer-center) contains information api certification process. in particular, check out links in "go live" section:

ds dev center go live

the go live - overview page starting point: https://www.docusign.com/developer-center/go-live/overview


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -