Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Add support to query signature requests list #73

Open
janetanne opened this issue May 7, 2019 · 2 comments
Open

Add support to query signature requests list #73

janetanne opened this issue May 7, 2019 · 2 comments
Labels
legacy Related to legacy, non-OpenAPI SDK

Comments

@janetanne
Copy link
Contributor

janetanne commented May 7, 2019

Add the ability to use the "query" parameter for ListSignatureRequests requests.

Workaround:
You can use a requests library to build a raw HTTP request and send it through like that. An example using RestSharp:

        static void querySignatureRequests(string apiKey)
        {
            var key = apiKey;
            var httpClient = new RestClient("https://:@api.hellosign.com/v3/");
            httpClient.Authenticator = new RestSharp.Authenticators.HttpBasicAuthenticator(key, "");
            string urlString = "signature_request/list/?query=created:[2020-07-15+TO+2020-07-15]";
            var request = new RestRequest(urlString);
            IRestResponse response = httpClient.Execute(request);
            var status = response.Content;
            Console.WriteLine(status);
        }

Related ticket number: 386925
Internal reference number: 10330

@tmccurdy
Copy link

tmccurdy commented Aug 7, 2020

I've added this support locally (I guess I could have used the "AdditionalParameters" but this was easier). However, searching doesn't work, my query looks like this "complete:false+AND+declined:false" and it fails all the time. Is their online documentation just bogus? Are there supposed to be "+" signs between the "AND/OR" conditions?

@janetanne
Copy link
Contributor Author

Hi @tmccurdy! I added in the workaround above. I believe my coworker Hazem also relayed the workaround to you. Hope that helps!

@jtreminio-dropbox jtreminio-dropbox added the legacy Related to legacy, non-OpenAPI SDK label Jun 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
legacy Related to legacy, non-OpenAPI SDK
Projects
None yet
Development

No branches or pull requests

3 participants