This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from npr/141-release-1.8
Version 1.8
- Loading branch information
Showing
12 changed files
with
153 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# NPR API Field Mapping | ||
# NPR Story API Field Mapping | ||
|
||
In most cases your posts will successfully push to the NPR API using the standard WordPress fields including the post title and body. If your WordPress site has post types that use custom fields, you can map those fields to the NPR Story API using the settings in **Settings > NPR API Field Mapping**. | ||
In most cases your posts will successfully push to the NPR Story API using the standard WordPress fields including the post title and body. If your WordPress site has post types that use custom fields, you can map those fields to the NPR Story API using the settings in **Settings > NPR API Field Mapping**. | ||
|
||
Select your custom fields to map them to the NPR API labels: | ||
Select your custom fields to map them to the NPR Story API labels: | ||
|
||
![NPR API push settings for custom fields](assets/img/npr-api-wp-plugin-field-mapping.png) | ||
![NPR Story API push settings for custom fields](assets/img/npr-api-wp-plugin-field-mapping.png) | ||
|
||
Don't forget to click **Save Changes**! | ||
Don't forget to click **Save Changes**! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Pushing Posts to NPR One | ||
# Pushing Posts to NPR One | ||
|
||
You can easily push posts to the [NPR One mobile app](https://www.npr.org/about/products/npr-one/) in addition to the NPR API. | ||
You can easily push posts to the [NPR One mobile app](https://www.npr.org/about/products/npr-one/) in addition to the NPR Story API. | ||
|
||
After you [set up the WordPress NPR API Plugin](settings.md) with your API Key and Org ID, you will see a new checkbox in the Post Edit screen for "Include for listening in NPR One": | ||
After you [set up the WordPress NPR Story API Plugin](settings.md) with your API Key and Org ID, you will see a new checkbox in the Post Edit screen for "Include for listening in NPR One": | ||
|
||
![Send to NPR One checkbox in the WordPress post edit screen](assets/img/test-post-npr-one.png) | ||
|
||
The checkbox is not selected by default. This allows you to push all your stories to the NPR API, but only selected stories to NPR One. | ||
The checkbox is not selected by default. This allows you to push all your stories to the NPR Story API, but only selected stories to NPR One. | ||
|
||
If you want to push a post to NPR One, check the box and hit the Publish or Update button. | ||
|
||
If you are sending the story to NPR One, you can also choose to mark the story as a featured story in NPR One. | ||
If you are sending the story to NPR One, you can also choose to mark the story as a featured story in NPR One. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# NPR API Plugin Docs | ||
# NPR Story API Plugin Docs | ||
|
||
The NPR Story API Plugin provides push and pull functionality with the [NPR API](https://www.npr.org/api/index) along with a user-friendly administrative interface. | ||
The NPR Story API Plugin provides push and pull functionality with the [NPR Story API](https://www.npr.org/api/index) 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 pull 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. | ||
NPR's Story API is a content API, which essentially provides a structured way for other computer applications to pull 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 API requires an API Key which you can get by [registering for an NPR account](https://secure.npr.org/oauth2/login). | ||
Access to the NPR Story API requires an API Key which you can get by [registering for an NPR account](https://secure.npr.org/oauth2/login). | ||
|
||
The WordPress plugin is being developed as an Open Source plugin by NPR Digital Services. 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 Digital Services through our support page at [https://info.ds.npr.org/support.html](https://info.ds.npr.org/support.html). | ||
|
||
## Docs Table of Contents | ||
|
||
- [Installation](installation.md) | ||
- [Plugin Settings](settings.md) | ||
- [Pulling a Single Story from the NPR API](pulling-single-story.md) | ||
- [Pulling Multiple Stories from the NPR API By Custom API Query](pulling-multiple-stories.md) | ||
- [Pushing Content to the NPR API](pushing.md) | ||
- [Pulling a Single Story from the NPR Story API](pulling-single-story.md) | ||
- [Pulling Multiple Stories from the NPR Story API By Custom API Query](pulling-multiple-stories.md) | ||
- [Pushing Content to the NPR Story API](pushing.md) | ||
- [Pushing Content to the NPR One app](npr-one.md) | ||
- [Custom Field Mapping](field-mapping.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.