@@ -388,6 +388,7 @@ public function get_growth_stats(\DateTime $starting = null, \DateTime $ending =
388388 /**
389389 * Get forms.
390390 *
391+ * @param string $status Form status (active|archived|trashed|all).
391392 * @param boolean $include_total_count To include the total count of records in the response, use true.
392393 * @param string $after_cursor Return results after the given pagination cursor.
393394 * @param string $before_cursor Return results before the given pagination cursor.
@@ -400,6 +401,7 @@ public function get_growth_stats(\DateTime $starting = null, \DateTime $ending =
400401 * @return false|array<int,\stdClass>
401402 */
402403 public function get_forms (
404+ string $ status = 'active ' ,
403405 bool $ include_total_count = false ,
404406 string $ after_cursor = '' ,
405407 string $ before_cursor = '' ,
@@ -408,7 +410,10 @@ public function get_forms(
408410 return $ this ->get (
409411 endpoint: 'forms ' ,
410412 args: $ this ->build_total_count_and_pagination_params (
411- params: [ 'type ' => 'embed ' ],
413+ params: [
414+ 'type ' => 'embed ' ,
415+ 'status ' => $ status ,
416+ ],
412417 include_total_count: $ include_total_count ,
413418 after_cursor: $ after_cursor ,
414419 before_cursor: $ before_cursor ,
@@ -420,6 +425,7 @@ public function get_forms(
420425 /**
421426 * Get landing pages.
422427 *
428+ * @param string $status Form status (active|archived|trashed|all).
423429 * @param boolean $include_total_count To include the total count of records in the response, use true.
424430 * @param string $after_cursor Return results after the given pagination cursor.
425431 * @param string $before_cursor Return results before the given pagination cursor.
@@ -432,6 +438,7 @@ public function get_forms(
432438 * @return false|array<int,\stdClass>
433439 */
434440 public function get_landing_pages (
441+ string $ status = 'active ' ,
435442 bool $ include_total_count = false ,
436443 string $ after_cursor = '' ,
437444 string $ before_cursor = '' ,
@@ -440,7 +447,10 @@ public function get_landing_pages(
440447 return $ this ->get (
441448 endpoint: 'forms ' ,
442449 args: $ this ->build_total_count_and_pagination_params (
443- params: [ 'type ' => 'hosted ' ],
450+ params: [
451+ 'type ' => 'hosted ' ,
452+ 'status ' => $ status ,
453+ ],
444454 include_total_count: $ include_total_count ,
445455 after_cursor: $ after_cursor ,
446456 before_cursor: $ before_cursor ,
0 commit comments