2014-12-01 3 views

답변

2

여러 가지 방법이 있습니다. Reinkesm의 게시물은 최종 사용자가 특정 기간 내에 특정 상태로 변경된 봉투 세트를 얻을 수있는 한 가지 방법입니다. DocuSign Retrieve 모듈을 사용하는 또 다른 방법은 최종 사용자를 대상으로합니다.

API 호출을 통해 프로그래밍 방식으로이 작업을 수행하려는 경우 기존 호출이 있으므로이를 쉽게 수행 할 수 있습니다. 날짜 및/또는 변경된 상태로 봉투를 필터링 할 수 있습니다.

DocuSign API Walkthroughs을 보았습니까? 다섯 번째 연습에서는 GET 전화를 /envelopes URI로 호출하여 검색하는 방법을 보여줍니다. 나는 당신이 그렇게 사용하여 연습을 확인하는 언어 확실하지 않다 당신이 볼을 포함, 6 개 곳의 다른 언어 샘플 PHP, Node.js, C#, Java, PythonObjective-C : 예를 들어

http://iodocs.docusign.com/APIWalkthrough/getEnvelopeStatus

, 다음은 PHP 코드 샘플입니다.

<?php 

    // Input your info here: 
    $email = "***";   // your account email 
    $password = "***";  // your account password 
    $integratorKey = "***";  // your account integrator key, found on (Preferences -> API page) 

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

    ///////////////////////////////////////////////////////////////////////////////////////////////// 
    // STEP 1 - Login (retrieves baseUrl and accountId) 
    ///////////////////////////////////////////////////////////////////////////////////////////////// 
    $url = "https://demo.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); 

    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);  

    //--- display results 
    echo "\naccountId = " . $accountId . "\nbaseUrl = " . $baseUrl . "\n"; 

    ///////////////////////////////////////////////////////////////////////////////////////////////// 
    // STEP 2 - status retrieval using filters 
    ///////////////////////////////////////////////////////////////////////////////////////////////// 
    echo "Performing status retrieval using filters...\n"; 
    date_default_timezone_set('America/Los_Angeles'); 
    $from_date = date("m") . "%2F" . (date("d")-7) . "%2F". date("Y"); 

    $curl = curl_init($baseUrl . "/envelopes?from_date=$from_date&status=created,sent,delivered,signed,completed"); 
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); 
    curl_setopt($curl, CURLOPT_HTTPHEADER, array(                   
     'Accept: application/json', 
     "X-DocuSign-Authentication: $header")                  
    ); 

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

    $response = json_decode($json_response, true); 

    //--- display results 
    echo "Received " . count($response["envelopes"]) . " envelopes\n"; 
    foreach ($response["envelopes"] as $envelope) { 
     echo "envelope: " . $envelope["envelopeId"] . " " . $envelope["status"] . " " . $envelope["statusChangedDateTime"] . "\n"; 
    }  
?> 
2

DocuSign Console에서 Envelope Publish 기능을 사용할 수 있습니다.에이을 완료 2014년 12월 31일 및 봉투 상태 -
환경 설정 - 귀하의 경우는 2014년 1월 1일로
에서 의 검색 기준을 설정에서> 봉투 (계정 관리 아래)에 게시합니다. 결과를 얻은 후에는 "CSV 파일로 데이터 저장"버튼을 사용하여 더 많은 형식으로 가져올 수 있습니다.