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
by Paul Cushing · github.com/paulcushing/wp-donors-choose-interface · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/paulcushing/wp-donors-choose-interface/archive/refs/heads/master.zipA 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)