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

Commit 514d895

Browse files
Merge pull request #124 from hellosign/template_list_search_query
Enabled Search Functionality for Get Template List
2 parents 8935f11 + c6b07fe commit 514d895

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/HelloSign/Client.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,15 +307,17 @@ public function getTemplate($id)
307307
* @param integer $page Specified page number to return. Defaults to 1. (optional)
308308
* @param integer $page_size Number of objects to return per page between 1 and 100. Defaults to 20. (optional)
309309
* @param string $account_id Account ID to return Templates for. Defaults to your account. (optional)
310+
* @param string $query String that includes search terms and/or fields to be used to filter the Template objects. (optional)
310311
* @return TemplateList
311312
* @throws BaseException
312313
*/
313-
public function getTemplates($page = 1, $page_size = null, $account_id = null)
314+
public function getTemplates($page = 1, $page_size = null, $account_id = null, $query = null)
314315
{
315316
$response = $this->rest->get(static::TEMPLATE_LIST_PATH,
316317
array('account_id' => $account_id,
317318
'page' => $page,
318-
'page_size' => $page_size)
319+
'page_size' => $page_size,
320+
'query' => $query)
319321
);
320322

321323
$this->checkResponse($response);

0 commit comments

Comments
 (0)