CRM-12556 - api/v3 - Identify contacts by user name
authorTim Otten <totten@civicrm.org>
Fri, 10 May 2013 21:54:31 +0000 (17:54 -0400)
committerTim Otten <totten@civicrm.org>
Sat, 20 Jul 2013 17:45:10 +0000 (10:45 -0700)
commit46b6363ca84aff553c548c77d5a0ea903b5b0a08
treed0dafa9d65962fd230360c66a3c0b282ffd4be3b
parent57e98a6525c7357d6d47db936c92ed9f7823d7b4
CRM-12556 - api/v3 - Identify contacts by user name

Example: drush civicrm-api contact.get id=@user:demo

I read "System_Drupal::loadUser()" to get a starting point for writing
"System_Drupal::getUserId()"; however, only Drupal defines loadUser(), so
there was no starting point for the other CMSs.  This will degrade in a sane
way on other CMSs.

----------------------------------------
* CRM-12556: Assign api_key for a user via command-line
  http://issues.civicrm.org/jira/browse/CRM-12556
CRM/Utils/System/Base.php
CRM/Utils/System/Drupal.php
CRM/Utils/System/Drupal6.php
api/v3/utils.php