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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • accessing and manipulating civicrm database from "outside" civicrm
Pages: [1]

Author Topic: accessing and manipulating civicrm database from "outside" civicrm  (Read 2456 times)

robertr

  • Guest
accessing and manipulating civicrm database from "outside" civicrm
August 16, 2008, 01:04:53 am
hi there,
I am a developper using python and a python base cms (zope/plone).
what I would like do do is handling some of the data in cimicrm's databse from this environment.

now my questions:
what documentations should I use. Is there an dbapi documentation?

one of the main tasks would be to entry new contacts and handle their relationships and group/tag assignments
looking at how civicrm fills the tablesI, I have the impression this should not be hard.
now I wonder whether it is necessary to handle any log data?
would anything break, if no log is maintained at all?

one of the a contacts fields I do not know how to set is the hash.
how is its value calculated ?

thanks for your time
robert
« Last Edit: August 16, 2008, 01:07:30 am by robertr »

geilhufe

  • I post frequently
  • ***
  • Posts: 293
  • Karma: 33
    • Social Source Software
Re: accessing and manipulating civicrm database from "outside" civicrm
August 16, 2008, 12:07:50 pm
(1) It would be great if someone in the plone community took a look at setting up the same integration we have with Drupal and Joomla.

(2) Developers docs:
http://wiki.civicrm.org/confluence/display/CRMDOC/7.+Develop
Drupal and CiviCRM consulting, strategy and configuration
http://www.social-source.com/

robertr

  • Guest
Re: accessing and manipulating civicrm database from "outside" civicrm
August 18, 2008, 12:45:18 am
I think plone integration would be great, since something like civicrm is lacking in this environment.
however, plone is *not* php based but is written in python.
therefore what we need is a sql api.
so for instance: what happens when I call  addIndividualContact() in the database ?

where is that call described ?
do I have to reverse engineer the php code (which I would resent) ?

robert

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: accessing and manipulating civicrm database from "outside" civicrm
August 18, 2008, 11:40:40 am

you might want to check the civicrm api. check:

http://civicrm.org/node/412
http://forum.civicrm.org/index.php?topic=3116.0
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs

v2.1 has a REST wrapper for most/all of the api's. Note that the api's are not comprehensive.

being resentful does not help a lot in open source (it does not improve the product either). A willing to help and improve things attitude gets you much further

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

robertr

  • Guest
Re: accessing and manipulating civicrm database from "outside" civicrm
August 18, 2008, 10:56:34 pm
oh sorry, I did not want to sound negative.
it is just that finding my way trough php code is not easy for me(I wanted to learn it for years but failed to have a reason ..)

robert

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: accessing and manipulating civicrm database from "outside" civicrm
August 24, 2008, 10:23:28 am
Hi,

Coming for python, that won't be that different.

The difficult bit is to understand what calls what.

Have a look at the architecture serie:
http://civicrm.org/architecture

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • accessing and manipulating civicrm database from "outside" civicrm

This forum was archived on 2017-11-26.