You are here

function cc::get_list_url in Constant Contact 6.2

Same name and namespace in other branches
  1. 6.3 class.cc.php \cc::get_list_url()
  2. 7.3 class.cc.php \cc::get_list_url()

* Returns the full URL for list operations * NOTE: this is a HTTP URL unike the one we call * * * @access private

6 calls to cc::get_list_url()
cc::clear_contacts in ./class.cc.php
* Be careful with this method :) * You can use this to clear all contacts from a specific set of contact lists * * *
cc::create_campaign in ./class.cc.php
* Creates a new campaign * * @access public
cc::create_contacts in ./class.cc.php
* This method is used to add 25 or more contacts * Pass this method an associative array of contact details * Alternatively you can give a path to a local or remote file * The file should be text or CSV format: * * * *
cc::export_contacts in ./class.cc.php
* This method creates a new export contacts activity * It returns the activity ID to use to check the status * * *
cc::update_contact in ./class.cc.php
* Updates a contact * * @access public

... See full list

File

./class.cc.php, line 470

Class

cc
@file

Code

function get_list_url($id, $full_address = true) {
  if ($full_address) {
    $_url = str_replace('https:', 'http:', $this->api_url . "lists");
  }
  else {
    $_url = $this->api_uri . "lists";
  }
  return "{$_url}/{$id}";
}