This repository was archived by the owner on Oct 17, 2023. It is now read-only.
add method to query for signature requests#119
Merged
jspaetzel merged 1 commit intohellosign:masterfrom Feb 4, 2021
codylerum:request_search
Merged
add method to query for signature requests#119jspaetzel merged 1 commit intohellosign:masterfrom codylerum:request_search
jspaetzel merged 1 commit intohellosign:masterfrom
codylerum:request_search
Conversation
Contributor
Author
|
@jspaetzel can you take a look at this when you have a moment? |
Contributor
Author
|
@jspaetzel Any thoughts here? |
Member
|
Sorry for the wait! This change looks nice, thanks for the contribution! For the SDK I prefer simple to use function signatures with escape hatches for when we're slow to implement new features here. If we were generating more code I'd prefer |
Member
|
I'll include this change with the next sdk release within the week, likely as 5.2.0 |
jspaetzel
approved these changes
Feb 4, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The API offers an option to query for signature requests that match a certain criteria
https://app.hellosign.com/api/reference#list_signature_requests
So you could create a request like https://api.hellosign.com/v3//signature_request/list?query=complete:false&page_size=100
However the Java API does not have an option to include the query parameter. I've added that here, but it begs another question if there should either be a SignatureRequestsRequestobject that you pass in
getSignatureRequests(SignatureRequestsRequest requst)Where SignatureRequestsRequest contains page_size,page,query,account_id and adds them to the URL as query params if they are set, or
getSignatureRequests(Map<String,Object> params)Where you just iterate through the entries and add them as key and value.toString
I'm not seeing any established conventions for this currently.
Stripe for instance uses something like
Probably makes the most sense to do something like the below since
.withGetParams(params)already exists on the HttpClientAnd then convert the existing methods to use it.
If you think that is a good path I can update the PR