Last active
February 13, 2017 01:27
-
-
Save okisanjp/fffc4addd99e0a4f11a13dff0fd0c487 to your computer and use it in GitHub Desktop.
feedly apiにfeedlrでアクセスする例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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