def build_query_from_options(api_method, options = {})
      # normalize options to a hash
      unless options.respond_to?(:merge!)
        options = CGI.parse(options)
      end

      options.merge!({:command => api_method, :token => @token})
      options.merge!({:format => :xml}) if options.key?(:output) && 'mrss'.eql?(options[:output])
      { :query => options }
    end
def build_query_from_options(api_method, options = {})
      # normalize options to a hash
      unless options.respond_to?(:merge!)
        options = CGI.parse(options)
      end

      options.merge!({:command => api_method, :token => @token})
      options.merge!({:format => :xml}) if options.key?(:output) && 'mrss'.eql?(options[:output])
      { :query => options }
    end
Build an appropriate query for the Brightcove API given an +api_method+ and +options+.
 This will also merge in your API token and set the +format+ to XML if +mrss+ has been
 requested for the +:output+.

 @param api_method [String] Brightcove API method.
 @param options [Hash] Optional hash containing parameter names and values.