You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/API/FormsApi.php
+162-9Lines changed: 162 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -2165,14 +2165,18 @@ public function getFormsRequest($fields_form = null, $filter = null, $page_curso
2165
2165
* Get Version IDs for Form
2166
2166
*
2167
2167
* @param string $id The ID of the form (required)
2168
+
* @param string $filter For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`form_type`: `any`, `equals`<br>`status`: `equals`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` (optional)
2169
+
* @param string $page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#pagination (optional)
2170
+
* @param int $page_size Default: 20. Min: 1. Max: 100. (optional, default to 20)
2171
+
* @param string $sort For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#sorting (optional)
2168
2172
*
2169
2173
* @throws \KlaviyoAPI\ApiException on non-2xx response
* @param string $filter For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`form_type`: `any`, `equals`<br>`status`: `equals`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` (optional)
2208
+
* @param string $page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#pagination (optional)
2209
+
* @param int $page_size Default: 20. Min: 1. Max: 100. (optional, default to 20)
2210
+
* @param string $sort For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#sorting (optional)
2194
2211
*
2195
2212
* @throws \KlaviyoAPI\ApiException on non-2xx response
2196
2213
* @throws \InvalidArgumentException
2197
2214
* @return array of array<string,mixed>|\KlaviyoAPI\Model\GetAccounts400Response|\KlaviyoAPI\Model\GetAccounts400Response, HTTP status code, HTTP response headers (array of strings)
* @param string $filter For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`form_type`: `any`, `equals`<br>`status`: `equals`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` (optional)
2398
+
* @param string $page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#pagination (optional)
2399
+
* @param int $page_size Default: 20. Min: 1. Max: 100. (optional, default to 20)
2400
+
* @param string $sort For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#sorting (optional)
* @param string $filter For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`form_type`: `any`, `equals`<br>`status`: `equals`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` (optional)
2440
+
* @param string $page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#pagination (optional)
2441
+
* @param int $page_size Default: 20. Min: 1. Max: 100. (optional, default to 20)
2442
+
* @param string $sort For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#sorting (optional)
* Create request for operation 'getVersionIdsForForm'
2461
2513
*
2462
2514
* @param string $id The ID of the form (required)
2515
+
* @param string $filter For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#filtering<br>Allowed field(s)/operator(s):<br>`form_type`: `any`, `equals`<br>`status`: `equals`<br>`updated_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than`<br>`created_at`: `greater-or-equal`, `greater-than`, `less-or-equal`, `less-than` (optional)
2516
+
* @param string $page_cursor For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#pagination (optional)
2517
+
* @param int $page_size Default: 20. Min: 1. Max: 100. (optional, default to 20)
2518
+
* @param string $sort For more information please visit https://developers.klaviyo.com/en/v2024-10-15/reference/api-overview#sorting (optional)
'Missing the required parameter $id when calling getVersionIdsForForm'
2473
2529
);
2474
2530
}
2531
+
if ($page_size !== null && $page_size > 100) {
2532
+
thrownew \InvalidArgumentException('invalid value for "$page_size" when calling FormsApi.getVersionIdsForForm, must be smaller than or equal to 100.');
2533
+
}
2534
+
if ($page_size !== null && $page_size < 1) {
2535
+
thrownew \InvalidArgumentException('invalid value for "$page_size" when calling FormsApi.getVersionIdsForForm, must be bigger than or equal to 1.');
0 commit comments