Using NYT-slash-command with nytimes.com

JavaScript integration

Install
npm install NYT-slash-command
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/news/v3/content.json
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/news/v3/content/{source}/{section}.json
curl \
  # append ?api-key=$API_KEY to the URL \
  http://api.nytimes.com/svc/news/v3/content/{source}/{section}/{time-period}.json
SDK on GitHub 📄 API Docs
SDK
NYT-slash-command
JavaScript
API
nytimes.com
nytimes.com:timeswire
At a glance
Language JavaScript
Endpoints3
Base URLhttp://api.nytimes.com/svc/news/v3