Skip to content

Are the examples correct? #27

Description

@daN4cat

Hi,

I was just looking for examples to do filtering in lists and I spotted this repo in GitHub, thanks for the contribution.
I'm not using this code, but something else, however this example doesn't seem correct:

$result = $mc->post('lists', [
    'name' => 'New list',
    'permission_reminder' => 'You signed up for updates on Greeks economy.',
    'email_type_option' => false,
    'contact' => [
        'company' => 'Doe Ltd.',
        'address1' => 'DoeStreet 1',
        'address2' => '',
        'city' => 'Doesy',
        'state' => 'Doedoe',
        'zip' => '1672-12',
        'country' => 'US',
        'phone' => '55533344412'
    ],
    'campaign_defaults' => [
        'from_name' => 'John Doe',
        'from_email' => 'john@doe.com',
        'subject' => 'My new campaign!',
        'language' => 'US'
    ]
]);

From what I understand you also need to set visibility 'prv' or 'pub' and set use_archive_bar true or false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions