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 »
  • Google Summer of Code »
  • GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
Pages: [1] 2 3 ... 8

Author Topic: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation  (Read 9572 times)

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
April 23, 2015, 12:51:26 pm
Hi,

I am reconsidering my GSoC proposal as I am willing to switch over to Open Supporter Data Interface (OSDI) Implementation project.
I have submitted a new proposal regarding the same. Further I will be posting my updates on this thread.

More information about OSDI can be found on this thread : http://forum.civicrm.org/index.php/topic,35601.0.html

I am looking forward for all the interested mentors and community members to discuss about OSDI on this thread.

Thank you.
-for the love of code and always learning

Anudit Verma

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
April 25, 2015, 11:22:56 am
Thanks, Anudit.
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
April 28, 2015, 11:26:40 am
So, we had a discussion on skype today and talked about the first step being to create a basic extension that has an api in it - e.g. OsdiContact.get that returns at least a subset of the api fields for a contact.

We talked about this being a learning / community building exercise so the focus should be on getting to grips with this strange new world of CiviCRM code  and finding ways to ask for help (IRC, this forum thread initially) rather than getting it right. The code from this first stage may not be used in the next stage  (as we all know we often learn so much the first time we 'would do it differently next time'.

The basic starting steps are
1) to install CiviX on your buildkit

https://github.com/totten/civix

2) Use CiviX to create an api that just returns some thing static / hard-coded
http://wiki.civicrm.org/confluence/display/CRMDOC/How+to+migrate+or+write+an+api
http://wiki.civicrm.org/confluence/display/CRMDOC/API+Reference

(Update the wiki if you find anything wrong / unclear)

3) And call your api through the API explorer.

4) replace the hard-coded one with details retrieved using the api

Have a go -
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
April 30, 2015, 01:53:43 pm
Hi,

Here are some updates on my work,
I have again installed CiviX in my buildkit for this project, this time though initially I struggled with composer. Got openssl extension missing error during its installation. So to over come this I changed the php PATH system variable to the WAMP installed php directory containing correctly configured php.ini file. Also I have been using git already and added CiviX to the PATH permanently.

Now currently I am engaged in going through the documentation for creating an API by using CiviX and for API reference.
Further I will be posting my progress really soon.
Thank you.
-for the love of code and always learning

Anudit Verma

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
April 30, 2015, 02:35:59 pm
Great Anudit. Sounds like you are working through the things you hit & are progressing on it.

Have you figured out how to get onto IRC? http://book.civicrm.org/user/current/the-civicrm-community/civicrm-community/

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 01, 2015, 12:55:32 am
Yes Eileen, I have a freenode registered nickname (anuditverma) and I have been following some conversations on #civicrm channel. Will surely move onto IRC if I need some help.
-for the love of code and always learning

Anudit Verma

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 03, 2015, 12:54:36 pm
Hi Eileen,

I am facing some problems while working with civix. For generating an API, I used civix CLI command:

>civix generate:api contact get

It is showing an exception:
"Failed to locate CMS. Please call civix from somewhere under the CMS root"
But I was already working under my drupal root, also I tried calling civix from drupal module's directory under civicrm but it shows the same thing. Is there is way in which I can tell civix about my CMS installation directory like a XML file or something that I need to define before using the civix ?
Meanwhile without civix I created a custom api file, called it through the API explorer and replaced the hard code.
I really want to know the basic usage and other functionality on civix.
Thanks
-for the love of code and always learning

Anudit Verma

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 03, 2015, 01:37:00 pm
Adding a quick not that Anudit has been discussing this on IRC & doesn't need an answer to his last post at this stage
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 09, 2015, 01:02:06 pm
Hi Eileen,

After discussing on IRC, the problem I stated before still persists, I used Cygwin to run commands (~/.civix/civix.ini) but it is unable to find the configuration file which may be pointing to a different root or older one. So I want to know (if it works), can I continue using wamp and its php resources and still be able to call civix under its defined root directory ? the problem is I have configured my dev environment (NodeJS, Apache Server, git etc) in windows if I switch back to Ubuntu then I have to do it all again to setup CMS and installing CiviCRM afterwards. (viz. bit time consuming) Also I came to know that vagrant can help me achieve the sharing of files between guest Ubuntu virtual machine and host windows OS. So should I go with setup of vagrant (though I have started with few initial steps) and could you brief me more about its further setup or the former problem that I mentioned can be solved with some steps that I might have missed while troubleshooting.

I believe it would be very helpful if we discuss it on Skype (like screen sharing or something) which would help me figure out what I am doing wrong and what actual implementation is required in this regard. Also my majors will be commencing soon so I want to get over this problem and setup my dev environment before the start of my exam preparations (likely to be in couple of weeks) so that I can begin developing in the coding period.

Thank you.
-for the love of code and always learning

Anudit Verma

joemcl

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 1
    • Citizen Action of New York
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.34
  • MySQL version: 5.6
  • PHP version: Unsure
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 09, 2015, 05:50:12 pm
Anudit - I would definitely take the time and finish setting up your dev environment using Ubuntu, not Windows and Vagrant. There will be much more more help and folks with experience doing that available here, via IRC.civicrm.org and civicrm.stackexchange.com to finish setting up using Ubuntu/Debian.

It sounds like you are already running a dual-boot Windows and Ubuntu machine, using Grub, is that right? If not, see http://www.ubuntu.com/download/desktop/install-ubuntu-desktop for instructions for doing that. 

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 10, 2015, 01:18:47 am
Yes Joe,
I am running a dual boot machine with Ubuntu 14.04 LTS along with windows.
Looking forward to achieve this with guidance of the Civi community soon.
Thank you.
-for the love of code and always learning

Anudit Verma

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 10, 2015, 11:28:20 am
indeed, will be easier if you are running on linux
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 11, 2015, 06:40:50 am
I concur with the other advice you are getting on using a linux dev environment. A subcontractor of mine had some painful experiences trying to get cygwin to work properly in order to participate in a CiviCRM project for us several years ago. I'm sure things are better now but it adds a unnecessary layer of complications and distractions to an already full project schedule.
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Anudit Verma

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 3
  • Budding author of a concise tech blog.
  • CiviCRM version: 4.7
  • CMS version: Drupal 8 , WordPress 4.4.2
  • MySQL version: 5.6.17
  • PHP version: 5.5.9
Query: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 14, 2015, 08:38:01 pm
Hi,

I have some queries regarding the implementation profiles by OSDI. I was going through the Action Network implementation plan. So I want know about the of ODSI profiles into Action network.
I mean is it that different organisations have different implementation profiles ? Other than field names like CRM based variations or something ?
Curious about getting responses and views from the community.

Thank you.
-for the love of code and always learning

Anudit Verma

jasonrosenbaum

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: N/A
  • CMS version: N/A
  • MySQL version: N/A
  • PHP version: N/A
Re: GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation
May 15, 2015, 04:59:03 am
Re: profiles, this concept is new, actually. The idea is that there might be common parts of OSDI that certain systems need to implement to do their work. Since all of OSDI is optional (you don't have to implement the whole spec, but if you implement parts of it you need to do it in the way the spec lays out), profiles can help identify common features that certain types of systems need.

For example, a system like Mobile Commons, which does SMS text messaging, probably doesn't need to implement any of the actions (petitions/signatures, fundraising pages/donations, etc...) since their system really doesn't do that. Their profile is more about the people endpoint, custom fields, maybe canvass questions and responses and answers, that kind of thing.

But, a system like Action Network (and like Civi) probably does need those action types, so our profile is a bit different.

I'm not sure you have to worry about profiles too much, like I said it's new, and it's just a way to help organize thinking around implementation. Basically, figuring out what parts of OSDI match to your system and what parts aren't relevant.

Pages: [1] 2 3 ... 8
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • Google Summer of Code »
  • GSoC 2015 : New API : Open Supporter Data Interface (OSDI) Implementation

This forum was archived on 2017-11-26.