2016-05-13 11 views
1

を取得します。私は封筒のIDで文書を取得すると、ドキュメントのURL

返されたURLのルートドメインとは何ですか?/envelopes/4f4ec572-b7aa-4b42-96ed-3e85655efbaa/documents/certificate

DocuSign\eSign\Model\EnvelopeDocument Object 
(
    [document_id:protected] => 1 
    [name:protected] => MojDoc.pdf 
    [type:protected] => content 
    [uri:protected] => /envelopes/4f4ec572-b7aa-4b42-96ed-3e85655efbaa/documents/1 
    [order:protected] => 1 
    [pages:protected] => 2 
    [contains_pdf_form_fields:protected] => 
    [available_document_types:protected] => Array 
     (
      [0] => DocuSign\eSign\Model\SignatureType Object 
       (
        [type:protected] => electronic 
        [is_default:protected] => true 
       ) 

     ) 

    [error_details:protected] => 
) 
DocuSign\eSign\Model\EnvelopeDocument Object 
(
    [document_id:protected] => certificate 
    [name:protected] => Summary 
    [type:protected] => summary 
    [uri:protected] => /envelopes/4f4ec572-b7aa-4b42-96ed-3e85655efbaa/documents/certificate 
    [order:protected] => 999 
    [pages:protected] => 4 
    [contains_pdf_form_fields:protected] => 
    [available_document_types:protected] => Array 
     (
      [0] => DocuSign\eSign\Model\SignatureType Object 
       (
        [type:protected] => electronic 
        [is_default:protected] => true 
       ) 

     ) 

    [error_details:protected] => 
) 

答えて

2

このURLは、アカウントのbaseUrlからの相対パスです。最初の/login_informationコールを行ったときにbaseUrlを受信しました。

ユーザーが複数のアカウントにアクセスできる場合、/ login_informationメソッドが複数のアカウント情報を返すことは珍しくありません。

ベースURLはアカウントごとに異なります。

+0

アカウントのオーナーが自分の文書を一覧表示して閲覧できるようにする必要があります – FosAvance

+0

getBaseUrl()を使用してベースURLを取得しました http://i.imgur.com/JXPHMfh.png – FosAvance

関連する問題