Sha256: f427f36f591ccecf45221eda4d7ef8eac8bba62af9078fd20c0ceb9f625114ee
Contents?: true
Size: 908 Bytes
Versions: 11
Compression:
Stored size: 908 Bytes
Contents
require 'oauth/request_proxy/base' module OAuth module RequestProxy # RequestProxy for Hashes to facilitate simpler signature creation. # Usage: # request = OAuth::RequestProxy.proxy \ # "method" => "iq", # "uri" => [from, to] * "&", # "parameters" => { # "oauth_consumer_key" => oauth_consumer_key, # "oauth_token" => oauth_token, # "oauth_signature_method" => "HMAC-SHA1" # } # # signature = OAuth::Signature.sign \ # request, # :consumer_secret => oauth_consumer_secret, # :token_secret => oauth_token_secret, class MockRequest < OAuth::RequestProxy::Base proxies Hash def parameters @request["parameters"] end def method @request["method"] end def uri @request["uri"] end end end end
Version data entries
11 entries across 11 versions & 4 rubygems