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,
# File lib/oauth/request_proxy/mock_request.rb, line 27
27: def method
28: @request["method"]
29: end
# File lib/oauth/request_proxy/mock_request.rb, line 31
31: def normalized_uri
32: super
33: rescue
34: # if this is a non-standard URI, it may not parse properly
35: # in that case, assume that it's already been normalized
36: uri
37: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.