Sha256: 1fe84985126bcf140d97f8369be5e81b14087e3aa10bcd2496d72be85183d4c9

Contents?: true

Size: 1.16 KB

Versions: 1

Compression:

Stored size: 1.16 KB

Contents

module Feedlr
  module Gateway
    # Entries API
    #
    # @see http://developer.feedly.com/v3/entries/
    module Entries
      # Get the content of an entry
      #
      # @see user_entries
      # @param entry_id [String]
      # @return [Feedlr::Base]
      def user_entry(entry_id)
        user_entries([entry_id]).first
      end

      # Get the content for a dynamic list of entries
      #
      # @see http://developer.feedly.com/v3/entries/#get-the-content-for-a-dynamic-list-of-entries
      # @param entries_ids [Array] list of ids
      # @param options [Hash]
      # @option options [String] :continuation next cursor id
      # @return [Feedlr::Collection]
      def user_entries(entries_ids ,  options =  {})
        build_object(:post , '/entries/.mget',
                     continuation: options[:continuation],
                     ids: entries_ids
                     )
      end

      # Create and tag an entry
      #
      # @see http://developer.feedly.com/v3/entries/#create-and-tag-an-entry
      # @param entry [Hash]
      # @return [String]
      def add_entry(entry)
        build_object(:post , '/entries' ,  entry).first
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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