Using npr-pmpsdk with npr.org

PHP integration

Install
composer require npr-pmpsdk
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-pmpsdk
PHP
API
npr.org
npr.org:listening
At a glance
Language PHP
Endpoints9