def request(verb, path, opts = {}, &block)
      url = client.connection.build_url(path, opts[:params]).to_s

      opts[:headers] ||= {}
      opts[:headers]['Authorization'] = header(verb, url)

      @client.request(verb, path, opts, &block)
    end
def request(verb, path, opts = {}, &block)
      url = client.connection.build_url(path, opts[:params]).to_s

      opts[:headers] ||= {}
      opts[:headers]['Authorization'] = header(verb, url)

      @client.request(verb, path, opts, &block)
    end
Initalize a MACToken

 @param [Client] client the OAuth2::Client instance
 @param [String] token the Access Token value
 @option [String] secret the secret key value
 @param [Hash] opts the options to create the Access Token with
 @option opts [String] :refresh_token (nil) the refresh_token value
 @option opts [FixNum, String] :expires_in (nil) the number of seconds in which the AccessToken will expire
 @option opts [FixNum, String] :expires_at (nil) the epoch time in seconds in which AccessToken will expire
 @option opts [FixNum, String] :algorithm (hmac-sha-256) the algorithm to use for the HMAC digest (one of 'hmac-sha-256', 'hmac-sha-1')
 Make a request with the MAC Token

 @param [Symbol] verb the HTTP request method
 @param [String] path the HTTP URL path of the request
 @param [Hash] opts the options to make the request with
 @see Client#request