docusign / docusign-esign-csharp-client

The Official DocuSign C# Client Library used to interact with the eSignature REST API. Send, sign, and approve documents using this client.
https://developers.docusign.com/
MIT License
129 stars 159 forks source link

ListStatusWithHttpInfo operation in EnvelopesApi.cs #301

Open jmitola opened 3 years ago

jmitola commented 3 years ago

In the operation 'ListStatusWithHttpInfo', the HTTP method is set to 'PUT'. It should be 'GET'. Leaving it as 'PUT' is causing an HTTP status 400 Bad Request

jmitola commented 3 years ago

This issue also exists in the 'ListStatusAsyncWithHttpInfo' operation. Could someone please make this change in the next release? This is a highly used operation to list out envelopes sent from a particular user and we can't use it because these operations are trying to perform a PUT method instead of a GET

RajRele commented 3 years ago

Hi @jmitola , I think this is what you are looking for https://github.com/docusign/docusign-csharp-client/blob/master/test/SdkNetCoreTests/JwtAuthNetCoreUnitTests.cs#L229 ?

ListStatusChanges is a GET method

https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/listStatusChanges/

jmitola commented 3 years ago
Thanks Bharat, That did work. However, I still think the ListStatusWithHttpInfo operation should be a GET method. Even the name suggests it and all the other PUT methods are labeled as such. Plus, if you try and call it, it always returns in error because it is trying to do a PUT operation. Thanks for suggesting the alternative though, I will change my code to use the ListStatusChanges operation. Joe  Joseph A. Mitola, Information Systems AnalystUniversity of California, BerkeleyIST - Enterprise Applications2195 Hearst Avenue, 250-29Berkeley, CA 94720-4876510-508-4443jmitola@berkeley.edu   From: Bharat ReleSent: Thursday, October 22, 2020 2:29 PMTo: docusign/docusign-csharp-clientCc: jmitola; MentionSubject: Re: [docusign/docusign-csharp-client] ListStatusWithHttpInfo operation in EnvelopesApi.cs (#301) Hi @jmitola , I think this is what you are looking for https://github.com/docusign/docusign-csharp-client/blob/master/test/SdkNetCoreTests/JwtAuthNetCoreUnitTests.cs#L229 ?ListStatusChanges is a GET methodhttps://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/listStatusChanges/—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.