public SignatureStatusResponse SignEnvelope(string envelopeId, string recipientId) { var template = SignatureApiUriTemplates.BuildUriTemplate(SignatureApiUriTemplates.SignEnvelope); var parameters = new NameValueCollection { { "userId", UserId }, { "envelopeId", envelopeId }, { "recipientId", recipientId } }; var response = SubmitRequest <SignatureStatusResponse>(template, parameters, "PUT", HttpContent.CreateEmpty()); return(response); }
public SignatureEnvelopeResponse CreateEnvelope(string templateId, string envelopeId, string name) { var template = SignatureApiUriTemplates.BuildUriTemplate(SignatureApiUriTemplates.CreateEnvelope); var parameters = new NameValueCollection { { "userId", UserId }, { "name", name }, { "templateId", templateId }, { "envelopeId", envelopeId } }; var response = SubmitRequest <SignatureEnvelopeResponse>(template, parameters, "POST", HttpContent.CreateEmpty()); return(response); }