manifest / integrations / wp-donors-choose-interface
WP Donors Choose Interface
A simple Wordpress plugin with methods to retrieve data from DonorsChoose.org via their API
★ 0stars
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/paulcushing/wp-donors-choose-interface/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A simple Wordpress plugin with methods to retrieve data from DonorsChoose.org via their API
Requirements
Wordpress - currently tested on version 4.7.3
php-curl - curl is required to interact with the DonorsChoose API
Installation
Upload zipped plugin files to Wordpress and activate the plugin.
Use
Provide DonorsChoose API Key You can get an API key by contacting DonorsChoose.org. For testing purposes, don't set the $api_key, or change it to 'DONORSCHOOSE'.
Initiate the connection and use the methods:
$api_key = 'examplekey';
$DC = new DCInterface($api_key);
$list = $DC->getList();
Methods
- getList($query)
- getSingle($id)
- projectLink($id)
- fundLink($id,$amount)
- prettySynopsis($synopsis)
- getSubject($ref)
- getGrade($ref)