Module: Feedlr::Gateway::Entries

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

Overview

Entries API

Instance Method Summary collapse

Instance Method Details

#add_entry(entry) ⇒ String

Create and tag an entry

Parameters:

  • entry (Hash)

Returns:

  • (String)

See Also:



35
36
37
# File 'lib/feedlr/gateway/entries.rb', line 35

def add_entry(entry)
  build_object(:post , '/entries' ,  entry).first
end

#user_entries(entries_ids, options = {}) ⇒ Feedlr::Collection

Get the content for a dynamic list of entries

Parameters:

  • entries_ids (Array)

    list of ids

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :continuation (String)

    next cursor id

Returns:

See Also:



23
24
25
26
27
28
# File 'lib/feedlr/gateway/entries.rb', line 23

def user_entries(entries_ids ,  options =  {})
  build_object(:post , '/entries/.mget',
               continuation: options[:continuation],
               ids: entries_ids
               )
end

#user_entry(entry_id) ⇒ Feedlr::Base

Get the content of an entry

Parameters:

  • entry_id (String)

Returns:

See Also:



12
13
14
# File 'lib/feedlr/gateway/entries.rb', line 12

def user_entry(entry_id)
  user_entries([entry_id]).first
end