Sha256: c354536bbd8ff4d3985e65e1ae91758e6ee32bb9d348e56c9c3705f0c616c801

Contents?: true

Size: 762 Bytes

Versions: 1

Compression:

Stored size: 762 Bytes

Contents

module Feedlr
  module Gateway
    # OPML API
    #
    # @see http://developer.feedly.com/v3/opml/
    module Opml
      # Export the user's subscriptions as an OPML file
      #
      # @see http://developer.feedly.com/v3/opml/#export-the-users-subscriptions-as-an-opml-file
      # @return [Feedlr::Base]
      def user_opml
        build_object(:get, '/opml', {}, :'Content-Type' => 'text/xml')
      end

      # Import an OPML
      #
      # @see http://developer.feedly.com/v3/opml/#import-an-opml
      # @param io_stream [IOStream] Any IOStream object
      # @return [Feedlr::Success]
      def import_opml(io_stream)
        build_object(:post, '/opml', io_stream.read,
                     :'Content-Type' => 'text/xml')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
feedlr-0.1.0 lib/feedlr/gateway/opml.rb