You are here

function cc::get_list_url in Constant Contact 7.3

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

Returns the full URL for list operations.

NOTE: this is an HTTP URL unlike the one we call.

@access private

6 calls to cc::get_list_url()
cc::clear_contacts in ./class.cc.php
Clear all contacts.
cc::create_campaign in ./class.cc.php
Creates a new campaign.
cc::create_contacts in ./class.cc.php
Bulk create contacts.
cc::export_contacts in ./class.cc.php
Creates a new export contacts activity.
cc::update_contact in ./class.cc.php
Updates a contact.

... See full list

File

./class.cc.php, line 581
Constant Contact PHP Class

Class

cc
@file Constant Contact PHP Class

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}";
}