-
Notifications
You must be signed in to change notification settings - Fork 0
/
Design.class.php
31 lines (24 loc) · 699 Bytes
/
Design.class.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
class AC_Design extends ActiveCampaign {
public $version;
public $url_base;
public $url;
public $api_key;
function __construct($version, $url_base, $url, $api_key) {
$this->version = $version;
$this->url_base = $url_base;
$this->url = $url;
$this->api_key = $api_key;
}
function edit($params, $post_data) {
$request_url = "{$this->url}&api_action=branding_edit&api_output={$this->output}";
$response = $this->curl($request_url, $post_data);
return $response;
}
function view($params, $post_data) {
$request_url = "{$this->url}&api_action=branding_view&api_output={$this->output}";
$response = $this->curl($request_url, $post_data);
return $response;
}
}
?>