Class: Feedlr::Client

Overview

Feedlr Client

Constant Summary

Constants included from Request

Request::API_VERSION, Request::ENDPOINT, Request::SANDBOX_ENDPOINT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Gateway::Evernote

#add_to_evernote, #evernote_notebooks, #unlink_evernote

Methods included from Gateway::Microsoft

#add_to_onenote, #unlink_microsoft

Methods included from Gateway::Twitter

#twitter_suggestions, #unlink_twitter

Methods included from Gateway::Facebook

#facebook_suggestions, #unlink_facebook

Methods included from Gateway::Search

#search_feeds, #search_stream

Methods included from Gateway::Opml

#import_opml, #user_opml

Methods included from Gateway::Mixes

#stream_most_engaging

Methods included from Gateway::Preferences

#preferences, #update_preferences

Methods included from Gateway::Profile

#update_profile, #user_profile

Methods included from Gateway::Shorten

#shorten_entry

Methods included from Gateway::Topics

#add_topic, #delete_topic, #update_topic, #user_topics

Methods included from Gateway::Tags

#change_tag_label, #delete_tag, #delete_tags, #tag_entries, #tag_entry, #untag_entries, #untag_entry, #user_tags

Methods included from Gateway::Subscriptions

#add_subscription, #delete_subscription, #update_subscription, #user_subscriptions

Methods included from Gateway::Markers

#lastest_tagged_entries, #mark_article_as_read, #mark_article_as_unread, #mark_articles_as_read, #mark_articles_as_unread, #mark_categories_as_read, #mark_category_as_read, #mark_feed_as_read, #mark_feeds_as_read, #sync_read_counts, #undo_mark_categories_as_read, #undo_mark_category_as_read, #undo_mark_feed_as_read, #undo_mark_feeds_as_read, #user_unread_counts

Methods included from Gateway::Streams

#stream_entries_contents, #stream_entries_ids

Methods included from Gateway::Entries

#add_entry, #user_entries, #user_entry

Methods included from Gateway::Categories

#change_category_label, #delete_category, #user_categories

Methods included from Gateway::Feeds

#feed, #feeds

Constructor Details

#initialize(options = {}) ⇒ Feedlr::Client

Initializer

Parameters:

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

    client options

Options Hash (options):

  • :oauth_access_token (String)
  • :sandbox (Boolean)
  • :logger (#debug, #info)


52
53
54
55
56
57
58
# File 'lib/feedlr/client.rb', line 52

def initialize(options = {})
  @oauth_access_token = options.fetch(:oauth_access_token) do
    Feedlr.oauth_access_token
  end
  @sandbox = options.fetch(:sandbox) { Feedlr.sandbox }
  @logger = options.fetch(:logger) { Feedlr.logger }
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



44
45
46
# File 'lib/feedlr/client.rb', line 44

def logger
  @logger
end

#oauth_access_tokenObject (readonly)

Returns the value of attribute oauth_access_token.



44
45
46
# File 'lib/feedlr/client.rb', line 44

def oauth_access_token
  @oauth_access_token
end

#sandboxObject (readonly)

Returns the value of attribute sandbox.



44
45
46
# File 'lib/feedlr/client.rb', line 44

def sandbox
  @sandbox
end