Skip to content

Tesorio/net-http-oauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Original repo https://github.com/timcraft/net-http-oauth was removed. Yanked from rubygems https://rubygems.org/gems/net-http-oauth/versions/1.0.0.

net-http-oauth

OAuth 1.0 signature algorithms for Net::HTTP requests.

Example usage

require 'net/http'
require 'net/http/oauth'

http = Net::HTTP.new('api.twitter.com', Net::HTTP.https_default_port)
http.use_ssl = true

get_request = Net::HTTP::Get.new('/1.1/statuses/user_timeline.json?screen_name=screen_name')

Net::HTTP::OAuth.sign!(http, get_request, {
  consumer_key: consumer_key,
  consumer_secret: consumer_secret,
  token: oauth_token,
  token_secret: oauth_token_secret
})

puts get_request['Authorization']

Releases

No releases published

Packages

No packages published

Languages