function get_endpoint($method = 'subscribe') { // user_name $user_name = $this->setting['user_name']; // return return parent::get_endpoint($method, array('user_name' => $user_name)); }
function get_endpoint($method = 'subscribe') { // key $apikey = $this->setting['apikey']; // mailchipmp url must be configured list($key, $domain) = explode('-', $apikey, 2); // default if (!$domain) { $domain = 'us1'; } // return return parent::get_endpoint($method, array('domain' => $domain)); }
function get_endpoint($method = 'subscribe') { // by method post url if (isset($this->setting[$method . '_post_url'])) { $post_url = $this->setting[$method . '_post_url']; } else { $post_url = $this->setting['post_url']; } // set $this->set_endpoint($method, $post_url); // return return parent::get_endpoint($method); }