Repository is archived
No commit activity in last 3 years
No release in over 3 years
Generates Twitter API's Authorization header
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 5.8
~> 10.0

Runtime

 Project Readme

TwitterRequestHeaders

This gem is intended to easily format Twitter API's Authorization HTTP header.

Installation

Add this line to your application's Gemfile:

gem 'twitter-request-headers'

And then execute:

$ bundle

Or install it yourself as:

$ gem install twitter-request-headers

Usage

TwitterRequestHeaders.configure(
  'KWZqnnFc8PPMjHOmXUpYNAMlI', # App ID
  '7HqOlwq7petgYbZwYIznWvaW6gxykFEoiWTliNMCNKosut5VXS' # App Secret
)

TwitterRequestHeaders.new(
  '150425432-3dAJqsCUXstN1kKgMwpFQGy9JtW6KgBeD30C1b4R', # OAuth Token
  'YHwc8jkR2pKAISscibQdymNKaXR8dzDsAabQknaJdYs9l', # OAuth Secret
  'GET',
  '/users/show.json',
  {'user_id' => '110425482'}
).header

Minitest

Install development dependencies:

$ bundle install

And run minitest:

$ rake test

License

The gem is available as open source under the terms of the MIT License.