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
$content = $response->getBody(); //stream goes to serializer
@@ -1071,10 +1061,10 @@ public function getTokenByIdRequest($token_id, string $contentType = self::conte
1071
1061
*
1072
1062
* Query SMTP API tokens by campaign name or an emailCampaignId.
1073
1063
*
1074
-
* @param string $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1075
-
* @param string $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1076
-
* @param string $after Starting point to get the next set of results. (optional)
1077
-
* @param int $limit Maximum number of tokens to return. (optional)
1064
+
* @param string|null $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1065
+
* @param string|null $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1066
+
* @param string|null $after Starting point to get the next set of results. (optional)
1067
+
* @param int|null $limit Maximum number of tokens to return. (optional)
1078
1068
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTokensPage'] to see the possible values for this operation
1079
1069
*
1080
1070
* @throws \HubSpot\Client\Marketing\Transactional\ApiException on non-2xx response or if the response body is not in the expected format
@@ -1092,10 +1082,10 @@ public function getTokensPage($campaign_name = null, $email_campaign_id = null,
1092
1082
*
1093
1083
* Query SMTP API tokens by campaign name or an emailCampaignId.
1094
1084
*
1095
-
* @param string $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1096
-
* @param string $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1097
-
* @param string $after Starting point to get the next set of results. (optional)
1098
-
* @param int $limit Maximum number of tokens to return. (optional)
1085
+
* @param string|null $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1086
+
* @param string|null $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1087
+
* @param string|null $after Starting point to get the next set of results. (optional)
1088
+
* @param int|null $limit Maximum number of tokens to return. (optional)
1099
1089
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTokensPage'] to see the possible values for this operation
1100
1090
*
1101
1091
* @throws \HubSpot\Client\Marketing\Transactional\ApiException on non-2xx response or if the response body is not in the expected format
@@ -1128,18 +1118,6 @@ public function getTokensPageWithHttpInfo($campaign_name = null, $email_campaign
1128
1118
1129
1119
$statusCode = $response->getStatusCode();
1130
1120
1131
-
if ($statusCode < 200 || $statusCode > 299) {
1132
-
thrownewApiException(
1133
-
sprintf(
1134
-
'[%d] Error connecting to the API (%s)',
1135
-
$statusCode,
1136
-
(string) $request->getUri()
1137
-
),
1138
-
$statusCode,
1139
-
$response->getHeaders(),
1140
-
(string) $response->getBody()
1141
-
);
1142
-
}
1143
1121
1144
1122
switch($statusCode) {
1145
1123
case200:
@@ -1198,6 +1176,19 @@ public function getTokensPageWithHttpInfo($campaign_name = null, $email_campaign
$content = $response->getBody(); //stream goes to serializer
@@ -1254,10 +1245,10 @@ public function getTokensPageWithHttpInfo($campaign_name = null, $email_campaign
1254
1245
*
1255
1246
* Query SMTP API tokens by campaign name or an emailCampaignId.
1256
1247
*
1257
-
* @param string $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1258
-
* @param string $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1259
-
* @param string $after Starting point to get the next set of results. (optional)
1260
-
* @param int $limit Maximum number of tokens to return. (optional)
1248
+
* @param string|null $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1249
+
* @param string|null $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1250
+
* @param string|null $after Starting point to get the next set of results. (optional)
1251
+
* @param int|null $limit Maximum number of tokens to return. (optional)
1261
1252
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTokensPage'] to see the possible values for this operation
1262
1253
*
1263
1254
* @throws \InvalidArgumentException
@@ -1278,10 +1269,10 @@ function ($response) {
1278
1269
*
1279
1270
* Query SMTP API tokens by campaign name or an emailCampaignId.
1280
1271
*
1281
-
* @param string $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1282
-
* @param string $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1283
-
* @param string $after Starting point to get the next set of results. (optional)
1284
-
* @param int $limit Maximum number of tokens to return. (optional)
1272
+
* @param string|null $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1273
+
* @param string|null $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1274
+
* @param string|null $after Starting point to get the next set of results. (optional)
1275
+
* @param int|null $limit Maximum number of tokens to return. (optional)
1285
1276
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTokensPage'] to see the possible values for this operation
1286
1277
*
1287
1278
* @throws \InvalidArgumentException
@@ -1331,10 +1322,10 @@ function ($exception) {
1331
1322
/**
1332
1323
* Create request for operation 'getTokensPage'
1333
1324
*
1334
-
* @param string $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1335
-
* @param string $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1336
-
* @param string $after Starting point to get the next set of results. (optional)
1337
-
* @param int $limit Maximum number of tokens to return. (optional)
1325
+
* @param string|null $campaign_name A name for the campaign tied to the SMTP API token. (optional)
1326
+
* @param string|null $email_campaign_id Identifier assigned to the campaign provided during the token creation. (optional)
1327
+
* @param string|null $after Starting point to get the next set of results. (optional)
1328
+
* @param int|null $limit Maximum number of tokens to return. (optional)
1338
1329
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getTokensPage'] to see the possible values for this operation
1339
1330
*
1340
1331
* @throws \InvalidArgumentException
@@ -1508,18 +1499,6 @@ public function resetPasswordWithHttpInfo($token_id, string $contentType = self:
1508
1499
1509
1500
$statusCode = $response->getStatusCode();
1510
1501
1511
-
if ($statusCode < 200 || $statusCode > 299) {
1512
-
thrownewApiException(
1513
-
sprintf(
1514
-
'[%d] Error connecting to the API (%s)',
1515
-
$statusCode,
1516
-
(string) $request->getUri()
1517
-
),
1518
-
$statusCode,
1519
-
$response->getHeaders(),
1520
-
(string) $response->getBody()
1521
-
);
1522
-
}
1523
1502
1524
1503
switch($statusCode) {
1525
1504
case200:
@@ -1578,6 +1557,19 @@ public function resetPasswordWithHttpInfo($token_id, string $contentType = self:
0 commit comments