Skip to content

Instantly share code, notes, and snippets.

@kellymears
Last active January 27, 2018 22:58
Show Gist options
  • Save kellymears/5911375 to your computer and use it in GitHub Desktop.
Save kellymears/5911375 to your computer and use it in GitHub Desktop.
getting recurring donors from Convio API (for SaveDarfur.org)
public function get_recurring_gifts($cons_id) {
$this->log_message('get_recurring_gifts() called.');
if($cons_id) {
$convio_data['cons_id'] = $cons_id;
$response = $this->convio_api->call('SRRecurringAPI_getRecurringGifts', $convio_data);
} else $this->log_error("get_recurring_gifts(): no cons_id specified.");
if($response) do_method_output($response);
else $this->log_error('get_recurring_gifts(): no response from convio.');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment