PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.5.6.2
JetFormBuilder — Dynamic Blocks Form Builder v3.5.6.2
3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 All 130 releases
jetformbuilder / modules / active-campaign / api / update-list-status.php
update-list-status.php
48 lines 771 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 namespace JFB_Modules\Active_Campaign\Api;
5
6 // If this file is called directly, abort.
7 if ( ! defined( 'WPINC' ) ) {
8 die;
9 }
10
11 class Update_List_Status extends Base_Action {
12
13 protected $list;
14 protected $contact;
15
16 public function action_endpoint() {
17 return 'contactLists';
18 }
19
20 public function action_headers() {
21 return array(
22 'Content-Type' => 'application/json',
23 );
24 }
25
26 public function action_body() {
27 return array(
28 'contactList' => array(
29 'contact' => $this->contact,
30 'list' => $this->list,
31 'status' => 1,
32 ),
33 );
34 }
35
36 public function set_contact( int $contact ): self {
37 $this->contact = $contact;
38
39 return $this;
40 }
41
42 public function set_list( int $list_items ): self {
43 $this->list = $list_items;
44
45 return $this;
46 }
47 }
48