I wrote an API wrapper for Classy, as there was not anything really out there for what I needed at the time. It’s been open sourced over on my company’s Github. It works readily with Wordpress, but it can just be used in any PHP project as it is just a static class.
Check out the Classy API Wrapper.
classy-api directory to
Add your Classy Token and Classy Charity ID to your Wordpress
1 2 define('CLASSY_TOKEN', 'xxxxxxxxxxxxxxxxxxxxx'); define('CLASSY_CHARITY_ID', '00000');
Activate the plugin in your Wordpress Dashboard and you should be ready to start using the API.
1 2 3 Classy_API::get_campaigns(array('eid' => 000000)); Classy_API::get_campaign(000000); Classy_API::get_campaign_tickets(000000);
wp-config.php add the following:
1 2 define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);
Run this in a terminal to follow the debug logs
1 tail -f /wp-content/debug.log