You are here

function cc::get_id_from_link in Constant Contact 7.3

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

Helper method to get the unique ID of a 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.

@access public

See also

get_lists()

12 calls to cc::get_id_from_link()
cc::get_activities in ./class.cc.php
Gets all activities.
cc::get_activity in ./class.cc.php
Gets a single activity.
cc::get_campaign in ./class.cc.php
Gets an individual campaign.
cc::get_campaigns in ./class.cc.php
Gets all campaigns.
cc::get_contact in ./class.cc.php
Gets a specific contact's details.

... See full list

File

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

Class

cc
@file Constant Contact PHP Class

Code

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