Upcoming Events

NYC CiviCRM Meetup - September 7th
September 7th, 2010
This next NYC meetup will feature a case study or 2, a look at what's new in (more...)

Configuring, Customizing and Extending CiviCRM - New York
September 16th, 2010
This comprehensive two-day hands on training course is targeted at (more...)

CiviCRM User and Administrator Training - New York
September 16th, 2010
A comprehensive two day hands on training course covering the configuration, (more...)

CiviCRM Code and Test Sprint - New York
September 18th, 2010
This code and test sprint is targeted at experienced developers who want to (more...)

CiviCRM Toronto Meetup
September 21st, 2010
Come meet others from the Toronto Area who are interested in, using or (more...)

CiviCRM Philly Meetup – September 2010
September 23rd, 2010
Come meet others from the Philadelphia Area who are interested in, using or (more...)

CiviCRM Seminar - Dublin
September 28th, 2010
NfP Services are hosting a free seminar at The IBOA, Stephen St Upper, Dublin 8 (more...)

London developer and implementer training
September 30th, 2010
This comprehensive two-day hands on training course is targeted at implementers, (more...)

London user and administrator training
September 30th, 2010
A comprehensive two day hands on training course covering the configuration, (more...)

Berlin user and administrator training
October 6th, 2010
A comprehensive one day hands on training course covering the configuration, (more...)

Berlin developer and implementer training
October 7th, 2010
This comprehensive one-day hands on training course is targeted at implementers, (more...)

Benelux meetup in Brussels: Connect, communicate and activate your supporters and constituents
October 11th, 2010
Come meet others who are interested in, using or developing for CiviCRM. For (more...)

CiviCRM Toronto Meetup
October 19th, 2010
Come meet others from the Toronto Area who are interested in, using or (more...)

CiviCRM Toronto Meetup
November 16th, 2010
Come meet others from the Toronto Area who are interested in, using or (more...)

CiviCRM Components

Tools for engaging your supporters...

CiviContribute


CiviEvent


CiviMail


CiviMember


CiviReport


Integration with Sunlight API's ..

Not Just a Contact Database

These optional components give you more power to connect and engage your supporters.

  • civiEVENT

  • Online event registration and participant tracking.

  • civiMEMBER

  • Online signup and membership management.

  • civiMAIL

  • Personalized email blasts and newsletters.

  • civiREPORT

  • Report generation and template management.

July 4, 2007 - 23:36 — lobo

Kieran Lal recently mentioned on the civicrm-dev list that he was interested in integration with the SunLightLabs API integration. This has been on my list for some time and I decided to take a peek at the API and while doing so decided to take a quick hack at integrating the API in CiviCRM trunk. You can see the changeset for my first attempt here (note, we've had issues with fisheye stability so this link might not work sometimes :(

Here are my impressions and thoughts on where we can go with this.

  • The API is pretty well documented and works as expected. Integrating it was relatively trivial. Since I was doing HTML integration, I decided to go use the XML output rather than the JSON output. A future version can potentially do most of this work using JSON and on the browser side
  • I could not figure out why I am getting 3 representatives from various zip codes and / or city-state combinations. Hopefully we'll find and fix this issue. I decided to check the SunLightLabs Blog and was a bit disheartened to see that it has not been updated since March!. I hope the API does not disappear soon and we get more regular blog updates :)
  • We definitely need to implement caching on the CiviCRM server side and store stuff in the database to avoid making many calls to the sunlight db. The cache could have a short lifetime (1 week?) to minimize drift from the main database. I suspect there will be a lot of cache hits (since it currently only has federal information). Creating a set of DB tables to store the information we retrieve from it should be relatively easy
  • The current integration is a bit simple. Given a contact, there is a tab to see the elected official for that contact. We need deeper integration and do the reverse. Given a representative, show me all the contacts in the database that he/she represents (and potentially form a smart group of these contacts). I suspect we could do this by extending the contact table with district level information (federal, state and city?)
  • Would be so so useful if Sunlight also takes care of the state/city level problem and gives us similar information. I suspect a fair amount of groups using CiviCRM are interested in City/State/Local information.
  • Probably useful to expose this feature in the user dashboard as an option.

Would be great for some folks in the community to step up and take this integration to the next level and implement some of the ideas above :)

( categories: )