Skip to content

A simple Wordpress plugin with methods to retrieve data from DonorsChoose.org via their API

Notifications You must be signed in to change notification settings

paulcushing/WP-Donors-Choose-Interface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

WP-Donors-Choose-Interface

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)

About

A simple Wordpress plugin with methods to retrieve data from DonorsChoose.org via their API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages