Skip to content

Instantly share code, notes, and snippets.

@okisanjp
Last active February 13, 2017 01:27
Show Gist options
  • Save okisanjp/fffc4addd99e0a4f11a13dff0fd0c487 to your computer and use it in GitHub Desktop.
Save okisanjp/fffc4addd99e0a4f11a13dff0fd0c487 to your computer and use it in GitHub Desktop.
feedly apiにfeedlrでアクセスする例
# -*- coding: utf-8 -*-
require 'feedlr'
Feedlr.configure do |config|
config.oauth_access_token = 'TOKEN'
end
client = Feedlr::Client.new
# p client.methods.sort - Object.methods
# あとで読むタグのID
g_save_id = client.user_tags[0].id
# あとで読む記事のIDs
entry_ids = client.stream_entries_ids(g_save_id)['ids']
# 記事の内容
entries = client.user_entries entry_ids
# 表示
entries.each do | entry |
p entry.title
# p entry.originId
p entry.alternate[0]['href']
p "--------------------------"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment