0.0
No commit activity in last 3 years
No release in over 3 years
Client for http://phish.in Phish streaming API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0
~> 0.9.11

Runtime

~> 2.7.0
~> 2.1.1
~> 1.8.1
~> 3.0.5
 Project Readme

Phish.in API Client

Talks to the http://phish.in API. Has built-in caching.

Installation

gem install phishin-client

Getting Started

require 'phishin-client'

doglogger = Logger.new
c = Phishin::Client.new(log: true, logger: doglogger, cache_options: { memcached_servers: ['localhost:11211'] })

# to not use caching, specify the :cache => false option
p = Phishin::Client.new(cache: false)

response = c.tracks(params: { page: 1, per_page: 40 })  # Phishin::Api::Response instance
json_hash = response.data

# no caching for this request
response = c.tracks(params: { page: 1, per_page: 40 }, force: true)  # Phishin::Api::Response instance

Info on releasing:

rake -T
rake release

License

Please see LICENSE.

Author

Alex Bird @alexebird. Big thanks to @phish_in.