lib/amazon_sdb/base.rb
def sdb_query(options = {})
        options.merge!({'AWSAccessKeyId' => @access_key,
          'SignatureVersion'             => SIGNATURE_VERSION,
          'Timestamp'                    => timestamp,
          'Version'                      => API_VERSION })
        options['Signature'] = Base.sign(@secret_key, options)

        # send to S3
        url = BASE_PATH + '?' + cgi_encode(options)

        # puts "Requesting #{url}" #if $DEBUG
        begin
          open(url) do |f|
            h = Hpricot.XML(f)

            parse_usage h
            raise_errors h
            yield h if block_given?
          end
        rescue OpenURI::HTTPError => e
          h = Hpricot.XML(e.io.read)
          parse_usage h
          raise_errors h
        end
      end
##
# The base is initialized with 2 parameters from your Amazon Web Services account:
# * +aws_access_key+ - Your AWS Access Key
# * +aws_secret_key+ - Your AWS Secret Key
The base is initialized with 2 parameters from your Amazon Web Services account:
+aws_access_key+ - Your AWS Access Key
+aws_secret_key+ - Your AWS Secret Key
The base is initialized with 2 parameters from your Amazon Web Services account : + aws_access_key + - Your AWS Access Key + aws_secret_key + - Your AWS Secret Key
def sdb_query(options = {})
        options.merge!({'AWSAccessKeyId' => @access_key,
          'SignatureVersion'             => SIGNATURE_VERSION,
          'Timestamp'                    => timestamp,
          'Version'                      => API_VERSION })
        options['Signature'] = Base.sign(@secret_key, options)
        url = BASE_PATH + '?' + cgi_encode(options)
        begin
          open(url) do |f|
            h = Hpricot.XML(f)
            parse_usage h
            raise_errors h
            yield h if block_given?
          end
        rescue OpenURI::HTTPError => e
          h = Hpricot.XML(e.io.read)
          parse_usage h
          raise_errors h
        end
      end
def sdb_query ( options = { } ) options . merge! ( { 'AWSAccessKeyId' => @access_key , 'SignatureVersion' => SIGNATURE_VERSION , 'Timestamp' => timestamp , 'Version' => API_VERSION } ) options [ 'Signature' ] = Base . sign ( @secret_key , options ) url = BASE_PATH + '?' + cgi_encode ( options ) begin open ( url ) do | f | h = Hpricot . XML ( f ) parse_usage h raise_errors h yield h if block_given? end rescue OpenURI :: HTTPError => e h = Hpricot . XML ( e . io . read ) parse_usage h raise_errors h end end
The base is initialized with 2 parameters from your Amazon Web Services account:
 +aws_access_key+ - Your AWS Access Key
 +aws_secret_key+ - Your AWS Secret Key
The base is initialized with 2 parameters from your Amazon Web Services account : + aws_access_key + - Your AWS Access Key + aws_secret_key + - Your AWS Secret Key
# send to S3 # puts "Requesting #{url}" #if $DEBUG
options