Using npr-one-test with npr.org

JavaScript integration

Install
npm install npr-one-test
Get recent ratings the logged-in user has submitted
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /v2/history
Get the list of available channels
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /v2/channels
Get a list of media for the logged-in user from NPR's recommendation engine
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  /v2/recommendations
SDK on GitHub 📄 API Docs
SDK
npr-one-test
JavaScript
API
npr.org
npr.org:listening
At a glance
Language JavaScript
Endpoints9