Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

harrisj-nytimes-articles

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harrisj-nytimes-articles

  • 0.4.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= nytimes-articles

A simple GEM for interacting with the New York Times' Article Search API (http://developer.nytimes.com/docs/article_search_api)

== CREDITS

== USAGE

require 'rubygems'
require 'nytimes-articles'

include Nytimes::Articles
Base.api_key = 'YOUR API KEY'
Article.search 'ice cream'
Article.search :title => '"ice cream"', :since => 3.weeks.ago, :fields => :basic
Article.search :author => 'Sewell Chan', :facets => [:geo, :person]

See the RDOC for Article#search for better instructions on usage.

== TODO

The following functionality is still to be implemented:

  • Parsing multimedia and related_multimedia fields
  • Coercion of some facet results into more suitable Ruby types (mostly Dates / Integer fields)
  • Next / previous result set pagination (with memoization?)

== COPYRIGHT Copyright (c) 2008 Jacob Harris. See LICENSE for details.

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc