CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Standalone Installations (Moderator: cap10morgan) »
  • Standalone API Help
Pages: [1]

Author Topic: Standalone API Help  (Read 3144 times)

jrburcher

  • Guest
Standalone API Help
April 24, 2010, 03:45:05 am
Hi,

First of all, huge fan of CiviCRM, this system is amazing!

I have been trying to get the REST API interface working, but have run into a few issues.  I have been using the documentation from:-
http://wiki.civicrm.org/confluence/display/CRMDOC/REST+interface

I have now reset the following lines of code:-
        CRM_Core_DAO::setFieldValue('CRM_Contact_DAO_Contact', $result[CRM:0], 'api_key', sha1($result[CRM:2]) );
        $api_key = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $result[CRM:0], 'api_key');
        // return self::error("This user does not have a valid API key in the database, and therefore cannot authenticate through this interface");

However the next step is and then login each API user account once before restoring the commenting of these lines to their original state.

I am missing something because I don't actually know what the API users are.  I have always used my myopenid (from myopenid.com) to login to the system.

I know that the site key is working as expected.  If anyone could give me some guidance I would really appreciate it.

Thank you so much :)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Standalone API Help
April 24, 2010, 06:58:49 pm

i assume u've read:

http://civicrm.org/blogs/lobo/dropping-support-civicrm-standalone-v32

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jrburcher

  • Guest
Re: Standalone API Help
April 24, 2010, 07:35:04 pm
hi lobo

thanks for the reply, yeah I know it will soon be dropped when 3.2 comes out :)

do you by chance have any ideas about my current issue though?

thanks lobo!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Standalone API Help
April 24, 2010, 10:21:32 pm

no :(

i have not played with standalone in the recent past

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jrburcher

  • Guest
Re: Standalone API Help
April 24, 2010, 10:25:03 pm
damn, but thanks for the reply lobo

I hope someone else can help me out :(

... anyone?


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Standalone Installations (Moderator: cap10morgan) »
  • Standalone API Help

This forum was archived on 2017-11-26.