From 72f3035c828552887f4697c979b5a32f835e28c2 Mon Sep 17 00:00:00 2001 From: Galen Richards <6540209+tangerinehuge@users.noreply.github.com> Date: Wed, 27 Apr 2022 10:01:42 -0700 Subject: [PATCH 1/3] Added account_id parameter to get sig request list --- hellosign_sdk/hsclient.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/hellosign_sdk/hsclient.py b/hellosign_sdk/hsclient.py index 2ff70ac..c1462f4 100644 --- a/hellosign_sdk/hsclient.py +++ b/hellosign_sdk/hsclient.py @@ -296,17 +296,21 @@ def get_signature_request(self, signature_request_id): return request.get(self.SIGNATURE_REQUEST_INFO_URL + signature_request_id, parameters=parameters) @api_resource_list(SignatureRequest) - def get_signature_request_list(self, page=1, page_size=None): - ''' Get a list of SignatureRequest that you can access + def get_signature_request_list(self, page=1, page_size=None, account_id=None): + ''' Get a list of SignatureRequests that you can access This includes SignatureRequests you have sent as well as received, but - not ones that you have been CCed on. + not ones that you have been CCed on. Optionally specify account id to + list SignatureRequests for another team member's account. Args: page (int, optional): Which page number of the SignatureRequest list to return. Defaults to 1. page_size (int, optional): Number of SignatureRequests to return per page. When not explicit it defaults to 20. + account_id (str, optional): Which account to return SignatureRequests for. Must be a team + member. Use "all" to indicate all team members. Defaults to + your account. Returns: A ResourceList object @@ -316,7 +320,8 @@ def get_signature_request_list(self, page=1, page_size=None): request = self._get_request() parameters = { "page": page, - "page_size": page_size + "page_size": page_size, + "account_id": account_id } return request.get(self.SIGNATURE_REQUEST_LIST_URL, parameters=parameters) From 6abe82bb0b4d44508d00ccf436bd59733e118eca Mon Sep 17 00:00:00 2001 From: Galen Richards <6540209+tangerinehuge@users.noreply.github.com> Date: Wed, 27 Apr 2022 10:13:36 -0700 Subject: [PATCH 2/3] added query param to get sig request list --- hellosign_sdk/hsclient.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hellosign_sdk/hsclient.py b/hellosign_sdk/hsclient.py index c1462f4..2f8698b 100644 --- a/hellosign_sdk/hsclient.py +++ b/hellosign_sdk/hsclient.py @@ -296,12 +296,11 @@ def get_signature_request(self, signature_request_id): return request.get(self.SIGNATURE_REQUEST_INFO_URL + signature_request_id, parameters=parameters) @api_resource_list(SignatureRequest) - def get_signature_request_list(self, page=1, page_size=None, account_id=None): + def get_signature_request_list(self, page=1, page_size=None, account_id=None, query=None): ''' Get a list of SignatureRequests that you can access This includes SignatureRequests you have sent as well as received, but - not ones that you have been CCed on. Optionally specify account id to - list SignatureRequests for another team member's account. + not ones that you have been CCed on. Args: @@ -311,6 +310,8 @@ def get_signature_request_list(self, page=1, page_size=None, account_id=None): account_id (str, optional): Which account to return SignatureRequests for. Must be a team member. Use "all" to indicate all team members. Defaults to your account. + query (str, optional): String that includes search terms and/or fields to be used to filter + the SignatureRequest objects. Returns: A ResourceList object @@ -321,7 +322,8 @@ def get_signature_request_list(self, page=1, page_size=None, account_id=None): parameters = { "page": page, "page_size": page_size, - "account_id": account_id + "account_id": account_id, + "query" : query } return request.get(self.SIGNATURE_REQUEST_LIST_URL, parameters=parameters) From 0b76b05eea9c456f205547b1ed2d77fd6aeba7e2 Mon Sep 17 00:00:00 2001 From: Galen Richards <6540209+tangerinehuge@users.noreply.github.com> Date: Wed, 27 Apr 2022 10:16:40 -0700 Subject: [PATCH 3/3] Removed excess whitespace --- hellosign_sdk/hsclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hellosign_sdk/hsclient.py b/hellosign_sdk/hsclient.py index 2f8698b..e6627e8 100644 --- a/hellosign_sdk/hsclient.py +++ b/hellosign_sdk/hsclient.py @@ -300,7 +300,7 @@ def get_signature_request_list(self, page=1, page_size=None, account_id=None, qu ''' Get a list of SignatureRequests that you can access This includes SignatureRequests you have sent as well as received, but - not ones that you have been CCed on. + not ones that you have been CCed on. Args: