@@ -388,6 +388,7 @@ public function get_growth_stats(\DateTime $starting = null, \DateTime $ending =
388
388
/**
389
389
* Get forms.
390
390
*
391
+ * @param string $status Form status (active|archived|trashed|all).
391
392
* @param boolean $include_total_count To include the total count of records in the response, use true.
392
393
* @param string $after_cursor Return results after the given pagination cursor.
393
394
* @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 =
400
401
* @return false|array<int,\stdClass>
401
402
*/
402
403
public function get_forms (
404
+ string $ status = 'active ' ,
403
405
bool $ include_total_count = false ,
404
406
string $ after_cursor = '' ,
405
407
string $ before_cursor = '' ,
@@ -408,7 +410,10 @@ public function get_forms(
408
410
return $ this ->get (
409
411
endpoint: 'forms ' ,
410
412
args: $ this ->build_total_count_and_pagination_params (
411
- params: [ 'type ' => 'embed ' ],
413
+ params: [
414
+ 'type ' => 'embed ' ,
415
+ 'status ' => $ status ,
416
+ ],
412
417
include_total_count: $ include_total_count ,
413
418
after_cursor: $ after_cursor ,
414
419
before_cursor: $ before_cursor ,
@@ -420,6 +425,7 @@ public function get_forms(
420
425
/**
421
426
* Get landing pages.
422
427
*
428
+ * @param string $status Form status (active|archived|trashed|all).
423
429
* @param boolean $include_total_count To include the total count of records in the response, use true.
424
430
* @param string $after_cursor Return results after the given pagination cursor.
425
431
* @param string $before_cursor Return results before the given pagination cursor.
@@ -432,6 +438,7 @@ public function get_forms(
432
438
* @return false|array<int,\stdClass>
433
439
*/
434
440
public function get_landing_pages (
441
+ string $ status = 'active ' ,
435
442
bool $ include_total_count = false ,
436
443
string $ after_cursor = '' ,
437
444
string $ before_cursor = '' ,
@@ -440,7 +447,10 @@ public function get_landing_pages(
440
447
return $ this ->get (
441
448
endpoint: 'forms ' ,
442
449
args: $ this ->build_total_count_and_pagination_params (
443
- params: [ 'type ' => 'hosted ' ],
450
+ params: [
451
+ 'type ' => 'hosted ' ,
452
+ 'status ' => $ status ,
453
+ ],
444
454
include_total_count: $ include_total_count ,
445
455
after_cursor: $ after_cursor ,
446
456
before_cursor: $ before_cursor ,
0 commit comments