Module: Feedlr::Gateway::Opml

Included in:
Client
Defined in:
lib/feedlr/gateway/opml.rb

Overview

OPML API

Instance Method Summary collapse

Instance Method Details

#import_opml(io_stream) ⇒ Feedlr::Success

Import an OPML

Parameters:

  • io_stream (IOStream)

    Any IOStream object

Returns:

See Also:



20
21
22
23
# File 'lib/feedlr/gateway/opml.rb', line 20

def import_opml(io_stream)
  build_object(:post, '/opml', io_stream.read,
               :'Content-Type' => 'text/xml')
end

#user_opmlFeedlr::Base

Export the user's subscriptions as an OPML file



11
12
13
# File 'lib/feedlr/gateway/opml.rb', line 11

def user_opml
  build_object(:get, '/opml', {}, :'Content-Type' => 'text/xml')
end