Skip to content

API Mailing List

Compatibility

  • EE2

Installation

  1. Copy the files to the system/expressionengine/third_party dir
  2. Enable the API from within the Webservice Module

Methods

create_mailinglist

Short nameDescription
list_nameThe short nameRequired
list_titleThe titleRequired

Request

Array
(
    [list_name] => test_mailinglist
    [list_title] => Test Mailinglist
)

read_mailinglist

Short nameDescription
list_idThe list idRequired

Request

Array
(
    [list_id] => 2
)

update_mailinglist

Short nameDescription
list_idThe id of the mailinglistRequired
list_nameThe short nameOptional
list_titleThe title of the listOptional
list_templateThe template of the listOptional

Request

Array
(
  [list_id] => 14  
  [list_name] => test_group
)

delete_mailinglist

Short nameDescription
list_idThe id of the mailinglistRequired

Request

Array
(
  [list_id] => 14  
)

create_subscription

Short nameDescription
list_idThe id of the mailinglistRequired
emailThe emailRequired

Request

Array
(
  [list_id] => 14  
  [email] => test@example.com  
)

delete_subscription

Short nameDescription
list_idThe id of the mailinglistRequired
emailThe emailRequired

Request

Array
(
  [list_id] => 14  
  [email] => test@example.com  
)

Hooks

webservice_create_mailinglist_start

(added in v1.0)

$post_data = ee()->extensions->call('webservice_create_mailinglist_start', $post_data);

webservice_create_mailinglist_end

(added in v1.0)

ee()->extensions->call('webservice_create_mailinglist_end', $list_id);

webservice_read_mailinglist_start

(added in v1.0)

$post_data = ee()->extensions->call('webservice_read_mailinglist_start', $post_data);

webservice_read_mailinglist_end

(added in v1.0)

ee()->extensions->call('webservice_delete_category_group_end', $list_id);

webservice_update_mailinglist_start

(added in v1.0)

$post_data = ee()->extensions->call('webservice_update_mailinglist_start', $post_data);

webservice_update_mailinglist_end

(added in v1.0)

ee()->extensions->call('webservice_update_mailinglist_end', $list_id);

webservice_delete_mailinglist_start

(added in v1.0)

$post_data = ee()->extensions->call('webservice_delete_mailinglist_start', $post_data);

webservice_delete_mailinglist_end

(added in v1.0)

ee()->extensions->call('webservice_delete_mailinglist_end', $list_id);

webservice_create_subscription_start

(added in v1.0)

$post_data = ee()->extensions->call('webservice_create_subscription_end', $post_data);

webservice_create_subscription_end

(added in v1.0)

ee()->extensions->call('webservice_create_subscription_end', $list_id);

webservice_delete_subscription_start

(added in v1.0)

$post_data = ee()->extensions->call('webservice_delete_subscription_start', $post_data);

webservice_delete_subscription_end

(added in v1.0)

ee()->extensions->call('webservice_delete_subscription_end');