npr / nprapi-wordpress

Access the NPR API from within WordPress. This repository is no longer being maintained. See the README for more information.
GNU General Public License v2.0
13 stars 30 forks source link

Note: This repository is no longer being maintained. This fork is being actively maintained: https://github.com/OpenPublicMedia/nprapi-wordpress

NPR Story API

A collection of tools for publishing from and to NPR's Story API. Find this plugin on the Wordpress.org Plugin Repository.

Contributors: nprds, innlabs
Requires at least: 3.8.14
Tested up to: 4.9
Stable tag: 1.8
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Description

The NPR Story API Plugin provides push and pull functionality with the NPR Story API along with a user-friendly administrative interface.

NPR's API is a content API, which essentially provides a structured way for other computer applications to get NPR stories in a predictable, flexible and powerful way. The content that is available includes audio from most NPR programs dating back to 1995 as well as text, images and other web-only content from NPR and NPR member stations. This archive consists of over 250,000 stories that are grouped into more than 5,000 different aggregations.

Access to the NPR Story API requires an API Key to NPR's legacy APIs. If you are an NPR member station or are working with an NPR member station and do not know your key, please ask NPR station relations for help.

The WordPress plugin is being developed as an Open Source plugin by NPR. If you would like to suggest features or bug fixes, or better yet if you would like to contribute new features or bug fixes please contact NPR station relations.

Installation

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Settings -> NPR API screen to configure the plugin. Begin by entering your API Key, then add your Push URL and Org ID.

Frequently Asked Questions

Can anyone get an NPR Story API Key?

We are no longer provisioning public API key for our legacy APIs. If you are an NPR member station or are working with an NPR member station and do not know your key, please ask NPR station relations for help.

Can anyone push content into the NPR Story API using this plugin?

Push requires an Organization ID in the NPR Story API, which is typically given out to only NPR stations and approved content providers. If that's you, you probably already have an Organization ID.

Where can I find NPR's documentation on the NPR Story API?

There is some documentation in the NPR Story API site: www.npr.org/api/index.php.

Is there an easy way to directly query the NPR Story API?

You bet, just visit the NPR Query Generator: www.npr.org/api/queryGenerator.php

Screenshots

NPR Story API Plugin Settings screen

NPR Story API Plugin Settings screen

NPR Story API multiple get settings

NPR Story API multiple get settings

Get NPR Stories link in the dashboard

Get NPR Stories link in the dashboard

Getting an NPR Story by Story ID

Getting NPR Stories by Story ID

NPR Stories having got gotten

NPR Stories having got gotten

Changelog

V1.8

V1.7

V1.6

V1.5.2

V1.5.1

V1.5

V1.4

V1.3

V1.2

V1.1

This version will allow admins to configure their WordPress site to retrieve multiple NPR Story API stories that will be automatically published (via cron) to their site.

V1.0

As not a lot of users have installed the V1.0 of the NPR Story API Plugin, there are a couple of things to keep in mind.

Upgrade Notice

1.5.2

This version adds export functionality for the NPR One mobile app, in addition to assorted bug fixes.