Skip to content

Commit ba645e1

Browse files
committed
V25.5.0 - 2025-05-10
1 parent 43ac932 commit ba645e1

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

src/ConstantContact/Definition/ContactCreateOrUpdateInput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @property int $birthday_month The month value for the contact's birthday. Valid values are from 1 through 12. The <code>birthday_month</code> property is required if you use <code>birthday_day</code>.
1818
* @property int $birthday_day The day value for the contact's birthday. Valid values are from 1 through 31. The <code>birthday_day</code> property is required if you use <code>birthday_month</code>.
1919
* @property \PHPFUI\ConstantContact\Definition\StreetAddress $street_address
20-
* @property string $sms_channel The contact's SMS compatible phone number.
20+
* @property \PHPFUI\ConstantContact\Definition\JmmlSmsChannel $sms_channel
2121
*/
2222
class ContactCreateOrUpdateInput extends \PHPFUI\ConstantContact\Definition\Base
2323
{
@@ -34,7 +34,7 @@ class ContactCreateOrUpdateInput extends \PHPFUI\ConstantContact\Definition\Base
3434
'birthday_month' => 'int',
3535
'birthday_day' => 'int',
3636
'street_address' => '\PHPFUI\ConstantContact\Definition\StreetAddress',
37-
'sms_channel' => 'string',
37+
'sms_channel' => '\PHPFUI\ConstantContact\Definition\JmmlSmsChannel',
3838

3939
];
4040

src/ConstantContact/V3/Activities/ContactsFileImport.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public function __construct(\PHPFUI\ConstantContact\Client $client)
4242
If adding an `sms_number`, you must also include the `sms_permission_to_send` parameter and set it to either `not_set` or `explicit`. If `explicit`, requires including `sms_consent_date` as a column header to specify the date the contact consented to receiving SMS messages.
4343
4444
You can also use custom fields as column headings. Enter the custom field name prefixed with `cf:` as the column heading. For example, use `cf:first_name` as the header name if you have a custom field named "first_name". The custom field must already exist in the Constant Contact account you are using. Depending on the custom field data type, you can enter dates or strings as the value of the custom field. Each contact can contain up to 25 different custom fields.
45-
* @param array $list_ids Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact `list_id` values.
45+
* @param string $list_ids Specify which contact lists you are adding all imported contacts to as an array of up to 50 contact `list_id` values.
4646
* @param string $sms_permission_to_send If importing contact `sms_number`s, use this parameter to specify how SMS consent was provided. If all contacts in the file provided their consent, set to `explicit` and include each contact's `sms_consent_date`. If all contacts in the file have not yet provided consent, set to `not_set` (`sms_consent_date` is not required). You cannot message a contact that does not have a sms consent date set.
4747
*/
48-
public function post(string $file, array $list_ids, ?string $sms_permission_to_send = null) : ?array
48+
public function post(string $file, string $list_ids, ?string $sms_permission_to_send = null) : ?array
4949
{
5050

5151
if (null !== $sms_permission_to_send)
@@ -61,7 +61,7 @@ public function post(string $file, array $list_ids, ?string $sms_permission_to_s
6161
return $this->doPost(['file' => $file, 'list_ids' => $list_ids, 'sms_permission_to_send' => $sms_permission_to_send, ]);
6262
}
6363

64-
public function postTyped(string $file, array $list_ids, ?string $sms_permission_to_send = null) : ?\PHPFUI\ConstantContact\Definition\ActivityImport
64+
public function postTyped(string $file, string $list_ids, ?string $sms_permission_to_send = null) : ?\PHPFUI\ConstantContact\Definition\ActivityImport
6565
{
6666
$data = $this->post($file, $list_ids, $sms_permission_to_send);
6767

src/ConstantContact/V3/Contacts/SignUpForm.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function __construct(\PHPFUI\ConstantContact\Client $client)
2828
* the contact properties you include in the request body. Updates append
2929
* new contact lists or custom fields to the existing `list_memberships`
3030
* or `custom_fields` arrays.
31+
*
3132
* If `email_address` is specified: <div class="Msg"><p class="note-text">Only
3233
* use this method when a contact gives you their explicit permission to
3334
* send them an email. It is a violation of anti-spam and telemarketing
@@ -41,6 +42,7 @@ public function __construct(\PHPFUI\ConstantContact\Client $client)
4142
* as well as a serious violation of the Constant Contact Terms of Service
4243
* to use the Opt-in features of the API to opt a contact back in without
4344
* his or her own action and consent.</p></div>
45+
*
4446
* When this method creates a new contact, it returns a 201 response code.When
4547
* this method updates an existing contact, it returns a 200 response code.
4648
* Updating a deleted contact restores the contact.

yaml/swagger.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ swagger: "2.0"
33
info:
44
description: "The Constant Contact, Inc. V3 public API, for building integrations\
55
\ with Constant Contact, the leading small-business email marketing platform."
6-
version: "3.0.53"
6+
version: "3.0.62"
77
title: "AppConnect V3"
88
contact:
99
@@ -59,6 +59,8 @@ tags:
5959
- name: "Technology Partners Webhooks"
6060
description: "Use partner webhooks to subscribe to billing event notifications from\
6161
\ Constant Contact."
62+
- name: "Integrations"
63+
description: "Endpoints and methods used for integrations."
6264
schemes:
6365
- "https"
6466
consumes:
@@ -802,10 +804,11 @@ paths:
802804
description: "Specify which contact lists you are adding all imported contacts\
803805
\ to as an array of up to 50 contact `list_id` values."
804806
required: true
805-
type: "array"
807+
type: "string"
806808
items:
807809
type: "string"
808810
maxItems: 50
811+
format: "csv"
809812
x-example: "8c077f20-1586-11e4-bcb3-00163e56be7c"
810813
- name: "sms_permission_to_send"
811814
in: "formData"
@@ -2090,7 +2093,7 @@ paths:
20902093
\nUpdates to existing contacts are partial updates. This method only updates\
20912094
\ the contact properties you include in the request body. Updates append new\
20922095
\ contact lists or custom fields to the existing `list_memberships` or `custom_fields`\
2093-
\ arrays.\nIf `email_address` is specified: <div class=\"Msg\"><p class=\"\
2096+
\ arrays.\n\nIf `email_address` is specified: <div class=\"Msg\"><p class=\"\
20942097
note-text\">Only use this method when a contact gives you their explicit permission\
20952098
\ to send them an email. It is a violation of anti-spam and telemarketing\
20962099
\ laws, as well as a serious violation of the Constant Contact Terms of Service\
@@ -2101,7 +2104,7 @@ paths:
21012104
\ of anti-spam and telemarketing laws, as well as a serious violation of the\
21022105
\ Constant Contact Terms of Service to use the Opt-in features of the API\
21032106
\ to opt a contact back in without his or her own action and consent.</p></div>\n\
2104-
When this method creates a new contact, it returns a 201 response code.When\
2107+
\nWhen this method creates a new contact, it returns a 201 response code.When\
21052108
\ this method updates an existing contact, it returns a 200 response code.\
21062109
\ Updating a deleted contact restores the contact.\n\nThe method automatically\
21072110
\ modifies the contact's `permission_to_send` and `opt_in_source` properties\
@@ -9276,6 +9279,7 @@ definitions:
92769279
description: "The consents provided for the SMS Channel."
92779280
items:
92789281
$ref: "#/definitions/JmmlSmsChannelConsents"
9282+
description: "The contact's SMS details."
92799283
ContactCreateOrUpdateInput:
92809284
type: "object"
92819285
required:
@@ -9387,8 +9391,7 @@ definitions:
93879391
required:
93889392
- "kind"
93899393
sms_channel:
9390-
type: "string"
9391-
description: "The contact's SMS compatible phone number."
9394+
$ref: "#/definitions/JmmlSmsChannel"
93929395
ContactCreateOrUpdateResponse:
93939396
type: "object"
93949397
properties:

0 commit comments

Comments
 (0)