Skip to content

Commit 825f804

Browse files
authored
Merge pull request #67 from sendinblue/feature_new-changes
Mixed changes for different definitions
2 parents 116ec8f + ed72823 commit 825f804

30 files changed

+212
-188
lines changed

composer.lock

Lines changed: 57 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Api/SMSCampaignsApi.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Name | Type | Description | Notes
177177
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
178178

179179
# **getSmsCampaigns**
180-
> \SendinBlue\Client\Model\GetSmsCampaigns getSmsCampaigns($status, $limit, $offset)
180+
> \SendinBlue\Client\Model\GetSmsCampaigns getSmsCampaigns($status, $startDate, $endDate, $limit, $offset)
181181
182182
Returns the informations for all your created SMS campaigns
183183

@@ -198,11 +198,13 @@ $apiInstance = new SendinBlue\Client\Api\SMSCampaignsApi(
198198
$config
199199
);
200200
$status = "status_example"; // string | Status of campaign.
201+
$startDate = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
202+
$endDate = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
201203
$limit = 500; // int | Number limitation for the result returned
202204
$offset = 0; // int | Beginning point in the list to retrieve from.
203205

204206
try {
205-
$result = $apiInstance->getSmsCampaigns($status, $limit, $offset);
207+
$result = $apiInstance->getSmsCampaigns($status, $startDate, $endDate, $limit, $offset);
206208
print_r($result);
207209
} catch (Exception $e) {
208210
echo 'Exception when calling SMSCampaignsApi->getSmsCampaigns: ', $e->getMessage(), PHP_EOL;
@@ -215,6 +217,8 @@ try {
215217
Name | Type | Description | Notes
216218
------------- | ------------- | ------------- | -------------
217219
**status** | **string**| Status of campaign. | [optional]
220+
**startDate** | **\DateTime**| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional]
221+
**endDate** | **\DateTime**| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional]
218222
**limit** | **int**| Number limitation for the result returned | [optional] [default to 500]
219223
**offset** | **int**| Beginning point in the list to retrieve from. | [optional] [default to 0]
220224

docs/Model/CreateEmailCampaign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Name | Type | Description | Notes
2222
**footer** | **string** | Footer of the email campaign | [optional]
2323
**header** | **string** | Header of the email campaign | [optional]
2424
**utmCampaign** | **string** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [optional]
25-
**params** | **object** | Pass the set of attributes to customize the type classic campaign. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. Only available if 'type' is 'classic' | [optional]
25+
**params** | **object** | Pass the set of attributes to customize the type classic campaign. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. Only available if 'type' is 'classic'. It's considered only if campaign is in New Template Language format. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField' | [optional]
2626

2727
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
2828

docs/Model/CreateSmsCampaign.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**name** | **string** | Name of the campaign |
77
**sender** | **string** | Name of the sender. The number of characters is limited to 11 |
8-
**content** | **string** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional]
8+
**content** | **string** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS |
99
**recipients** | [**\SendinBlue\Client\Model\CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional]
1010
**scheduledAt** | [**\DateTime**] | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
1111

docs/Model/CreateSmsCampaignRecipients.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**listIds** | **int[]** | Lists Ids to send the campaign to. REQUIRED if scheduledAt is not empty |
7-
**exclusionListIds** | **int[]** | List ids which have to be excluded from a campaign |
7+
**exclusionListIds** | **int[]** | List ids which have to be excluded from a campaign | [optional]
88

99
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
1010

docs/Model/GetAggregatedReport.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**spamReports** | **int** | Number of complaint (spam report) for the timeframe |
1616
**blocked** | **int** | Number of blocked contact emails for the timeframe |
1717
**invalid** | **int** | Number of invalid emails for the timeframe |
18+
**unsubscribed** | **int** | Number of unsubscribed emails for the timeframe |
1819

1920
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
2021

docs/Model/GetReportsReports.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**spamReports** | **int** | Number of complaints (spam reports) for the date |
1616
**blocked** | **int** | Number of blocked emails for the date |
1717
**invalid** | **int** | Number of invalid emails for the date |
18+
**unsubscribed** | **int** | Number of unsubscribed emails for the date |
1819

1920
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)
2021

0 commit comments

Comments
 (0)