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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail API?
Pages: [1]

Author Topic: CiviMail API?  (Read 993 times)

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
CiviMail API?
February 27, 2012, 07:24:51 am
I heard of an idea to offer an API for CiviMail but I understand that it does not yet exist, and that there does not seem to be a MIH for it yet either.

I searched the wiki and found this which seems vaguely relevant.. http://wiki.civicrm.org/confluence/display/CRM/SOAP+Access+to+CiviCRM+API ..but nothing seems to have happened on that in the past 5 years.

I guess my question is: has the idea been written up anywhere, in enough detail to evaluate whether it would be useful, ie the interface that such an API should offer?
If so, what is the current status?
What would it take to create enough interest to start a MIH initiative?

Mark   :)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviMail API?
February 27, 2012, 02:16:08 pm
I haven't heard too much chat on it.

The starting point of the API spec would be that it would take the fields in the table
'civicrm_mailing' & create an entry - e.g civicrm_api('mailing', 'create', $params);

On a very quick look I think adding a row to that table would effectively create a mailing to be sent.

Basically we tend to look at new API in terms of the absolute simplest implementation - e.g http://svn.civicrm.org/civicrm/branches/v4.1/api/v3/Survey.php
& then write tests to lock in that most basic level & then see what might be missing
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

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: CiviMail API?
October 01, 2013, 02:01:12 am
To help future searchers - this happened http://forum.civicrm.org/index.php/topic,24075.0.html / CRM-11023 and is in current usage (but might benefit from documentation).

Example usage (current) - https://gist.github.com/xurizaemon/6775471
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • CiviMail API?

This forum was archived on 2017-11-26.