You are here

function cc::get_id_from_link in Constant Contact 6.2

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

* Method other methods call to get the unique ID of the resource * Unique ID's are used to identify a specific resource such as a contact or contact list and are passed as arguments to some of the methods * This is also used to get just the last piece of the URL in other functions eg. get_lists() * * @access public

18 calls to cc::get_id_from_link()
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_contact in ./class.cc.php
* Creates a new contact * * @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::create_list in ./class.cc.php
* Creates a new contact list * * * @access public

... See full list

File

./class.cc.php, line 1378

Class

cc
@file

Code

function get_id_from_link($link) {
  $link_bits = explode('/', $link);
  return $link_bits[count($link_bits) - 1];
}