0.0
No commit activity in last 3 years
No release in over 3 years
Client for Poxy (the http inbox)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

>= 0.0.2
>= 1.0.0
 Project Readme

poxy_client

Poxy is a web application that captures HTTP requests to let you do fun stuff with them.

Fun things like proxying, forwarding, emailing and some sort of processing (soon!).

In order to use it first you'll need to create an account into the site.

Installation

Bundler

Add this line to your application's Gemfile:

gem 'poxy_client'

And then execute:

$ bundle

Manual

$ gem install poxy_client

API Blueprint and Documentation

Courtesy of the great service Apiary.io, here it is: http://docs.poxy.apiary.io/

Usage

There are a few different ways to use the client.

The distribution includes an executable file that you can use. It requires a .config file.

Or, you can implement your own client suited to your particular needs. Take a look at the executable file, or check the code documentation.

Executable

In the /lib folder of the distribution, there's a file named poxyd.rb which you can run from the commandline.

It requires a mandatory config file (included in the distribution you'll find a sample one, here poxy.conf.

You can use that as a start (it points to a test endpoint in the poxy api).

Optionally, you can pass a -d parameter, and the executable will run as a daemon.

Sample run:

$ ruby poxyd.rb -c poxy.conf -d

Being poxy.conf a config file with your own API key.

Custom implementation

The code for PoxyClient it's pretty straightforward.

The PoxyClient#perform method encapsulates the 3 operations the client performs in order to retrieve, process and repeat a request.

Retrieve

Parse

Repeat

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request