class EasyOAuth::Header

Defined in:

easy_oauth/header.cr

Constant Summary

ATTRIBUTE_KEYS = ["callback", "consumer_key", "nonce", "signature_method", "timestamp", "token", "verifier", "version"]
IGNORED_KEYS = ["consumer_secret", "token_secret", "signature"]

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(method, url, params : Hash(String, String), oauth = {} of String => String) #

[View source]

Class Method Detail

def self.default_options #

[View source]
def self.escape(value) #

[View source]
def self.parse(header) #

[View source]
def self.unescape(value) #

[View source]

Instance Method Detail

def attributes #

[View source]
def hmac_sha1_signature #

[View source]
def method #

[View source]
def normalized_attributes(attrs = signed_attributes) #

[View source]
def normalized_params #

[View source]
def options : Hash(String, String) #

[View source]
def params : Hash(String, String) #

[View source]
def plaintext_signature #

[View source]
def secret #

[View source]
def signature #

[View source]
def signature_base #

[View source]
def signature_params #

[View source]
def signed_attributes(attrs = attributes) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def url #

[View source]
def url_params #

[View source]
def valid?(secrets = {} of String => String) #

[View source]