Module: Feedlr::Gateway::Opml
- Included in:
- Client
- Defined in:
- lib/feedlr/gateway/opml.rb
Overview
OPML API
Instance Method Summary collapse
-
#import_opml(io_stream) ⇒ Feedlr::Success
Import an OPML.
-
#user_opml ⇒ Feedlr::Base
Export the user's subscriptions as an OPML file.
Instance Method Details
#import_opml(io_stream) ⇒ Feedlr::Success
Import an OPML
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_opml ⇒ Feedlr::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 |