DocuSignのPHP SDK - フィルテンプレートの事前定義されたデータのラベル値

Shuyi:

更新:

結局のところ、私はデータが表示されるまで、この設定を有効にする必要があり、タブを使用して行うには正しいことです。

封筒が送られた場合、すべての受信者のためのフィールドの初期値を書き込みます

================================================== ===============

わからない、なぜこの1が正しくAPIで言及されていない...しかし、どのように1は、テンプレートとテンプレートのカスタムデータラベルを埋めるのでしょうか?

だから、私はこのようなテンプレートを作成します:

$envelope_definition = new EnvelopeDefinition([
            'status'      => 'sent',
            'template_id' => $args['template_id'],
        ]);

その後、私は署名者を作成します。

 $signer = new TemplateRole([
            'email'     => $args['signer_email'],
            'name'      => $args['signer_name'],
            'role_name' => 'signer',
        ]);

切断が起こったのはここ、私は事前に定義されたテンプレートの値を追加しますどこにあるのでしょうか?1.追加:私はこれまで二つのことをしようとしたtabsために$signerとても好きなの、そうすることによって、それが最終文書内のすべてのフィールドの値をereases、

new Tabs([
                    "text_tabs" => [
                        new Text([
                            "tab_label" => "price",
                            "value"     => "123456789",
                        ]),
                    ],
                ]),

  1. コール$envelope_definition->setCustomFields()のように、:
$envelope_definition->setCustomFields(new CustomFields([
            'text_custom_fields' => [
                'price' => new Text([
                    'tab_label'     => 'price',
                    'custom_tab_id' => 'price',
                    'value'         => '123456789',
                ]),
            ],
        ]));

それは私に私がまったく理解していないC#のエラーを、スローされます。

Error while requesting server, received a non successful HTTP code [400] with response Body:  O:8:\"stdClass\":2:{s:9:\"errorCode\";s:20:\"INVALID_REQUEST_BODY\";s:7:\"message\";s:718:\"The request body is missing or improperly formatted. Cannot deserialize the current JSON object (e.g. {\"name\":\"value\"}) into type 'System.Collections.Generic.List`1[API_REST.Models.v2_1.textCustomField]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.\r\nTo fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.\r\nPath 'customFields.textCustomFields.price', line 1, position 45.\";}"

APIドキュメントをテンプレートと値アドホックの作成に焦点を当てているようだ...誰もが作品というものを持っていますか?どうもありがとう!

アミットKは以下のとおりです。

あなたは、有効なPHPの例を見つけることができ、ここでエンベロープを作成しながら、どのようにテンプレートのタブ値を事前格納している番組。

おすすめ

転載: http://43.154.161.224:23101/article/api/json?id=13724&siteId=1