Project

f00px

0.02
No commit activity in last 3 years
No release in over 3 years
500px api rubygem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

F00px

500px api ruby gem Build Status

Installation

Add this line to your application's Gemfile:

gem 'f00px'

And then execute:

$ bundle

Or install it yourself as:

$ gem install f00px

Usage

Add this code to some initializer:

F00px.configure do |config|
  config.consumer_key = __consumer_key__
  config.consumer_secret = __consumer_secret__
  config.token = __token__
  config.token_secret = __token_secret__
end

Then just use the api:

response = F00px.get('users/1')
puts response.body

You also can create multiple clients.

With oauth

client = F00px::Client.new
client.token = '__client_token__'
client.token_secret = '__client_token_secret__'

response = client.get('users')
puts response.body

With xauth

client = F00px::Client.new
client.xauth('arthurnn', '**password**')

response = client.get('users')
puts response.body

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