GitHubで提供されているDocuSign REST APIソリューションを3か月間使用しています。私は、エンベロープを作成し、フィールドの配置のための埋め込みビューを作成し、包括的なビュー内でエンベロープのドラフトを保存することができます。しかし、SendEnvelopeメソッドを使用すると、期待どおり送信済みではなく、任意のバックのステータスが取得されます。DocuSign API - RESTでエンベロープが返されましたが、ステータスが返されません
Response.Contentプロパティは完全に空です。したがって、DeserializeメソッドはEnvelopeStatusオブジェクトを正しく作成して自分のコードに戻すことができません(基本的には空のインスタンスです)。これは他のREST呼び出しでは起こりそうになく、今日のSendEnvelopeメソッドでのみ発生したようです。 APIが変更されましたか、これがちょうど上がったエラーですか?
これはデモサイトに記載する必要があります。
さらに編集は、同封のステータスを変更するために使用されているコードです:DocuSignのエンジニアリングから
public ApiResponse<EnvelopeStatus> SendEnvelopeWithHttpInfo(string envelopeId, string accountId)
{
// verify the required parameters 'accountId' and 'envelopeId' are set
if (String.IsNullOrEmpty(accountId)) throw new ApiException(400, "Missing required parameter 'accountId' when calling SendEnvelopeWithHttpInfo");
if (String.IsNullOrEmpty(envelopeId)) throw new ApiException(400, "Missing required parameter 'envelopeId' when calling SendEnvelopeWithHttpInfo");
var path_ = "/v2/accounts/{accountId}/envelopes/{envelopeId}/";
var pathParams = new Dictionary<String, String>();
var queryParams = new Dictionary<String, String>();
var headerParams = new Dictionary<String, String>(Configuration.DefaultHeader);
var formParams = new Dictionary<String, String>();
var fileParams = new Dictionary<String, FileParameter>();
String postBody = null;
// to determine the Accept header
String[] http_header_accepts = new String[] {
"application/json"
};
String http_header_accept = Configuration.ApiClient.SelectHeaderAccept(http_header_accepts);
if (http_header_accept != null)
headerParams.Add("Accept", Configuration.ApiClient.SelectHeaderAccept(http_header_accepts));
// set "format" to json by default
// e.g. /pet/{petId}.{format} becomes /pet/{petId}.json
pathParams.Add("format", "json");
if (accountId != null) pathParams.Add("accountId", Configuration.ApiClient.ParameterToString(accountId)); // path parameter
if (envelopeId != null) pathParams.Add("envelopeId", Configuration.ApiClient.ParameterToString(envelopeId)); // path parameter
postBody = "{\"status\":\"sent\"}";
// make the HTTP request
IRestResponse response = (IRestResponse)Configuration.ApiClient.CallApi(path_, Method.PUT, queryParams, postBody, headerParams, formParams, fileParams, pathParams);
int statusCode = (int)response.StatusCode;
if (statusCode >= 400)
throw new ApiException(statusCode, "Error calling SendEnvelopeWithHttpInfo: " + response.Content, response.Content);
else if (statusCode == 0)
throw new ApiException(statusCode, "Error calling SendEnvelopeWithHttpInfo: " + response.ErrorMessage, response.ErrorMessage);
return new ApiResponse<EnvelopeStatus>(statusCode,
response.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
(EnvelopeStatus)Configuration.ApiClient.Deserialize(response, typeof(EnvelopeStatus)));
}
あなたはまだこの問題を見ていますか? –
こんにちはラリー、はい - 問題はまだ発生しています。 –
これはまだ進行中です。デベロッパーセンターが私にここを指摘してくれるようになったので、どこに助けを求めるのかちょっと不安です。 @LarryK、物事を説明/解決するのに役立つ何かを見つけたらアドバイスできますか? –