def subscribe(opts = {})
      if opts[:Endpoint].nil? || opts[:Endpoint].blank?
        raise Request::XmlException.new(Exception.new("subscribe parameters invalid"))
      else
        Request::Xml.put(subscribe_path) do |request|
          request.content(:Subscription, opts)
        end
      end
    end
def subscribe(opts = {})
      if opts[:Endpoint].nil? || opts[:Endpoint].blank?
        raise Request::XmlException.new(Exception.new("subscribe parameters invalid"))
      else
        Request::Xml.put(subscribe_path) do |request|
          request.content(:Subscription, opts)
        end
      end
    end
订阅topic