lib/feedly_api/client.rb in feedly_api-0.5.0 vs lib/feedly_api/client.rb in feedly_api-0.5.1
- old
+ new
@@ -12,14 +12,19 @@
def user_id
get_user_profile[:id]
end
+ def feed(feed_id)
+ data = get_feed_info(feed_id)
+ FeedlyApi::Feed.new data
+ end
+
private
def make_request(path, argv = {})
url = FeedlyApi::API_ENDPOINT + path + '?'
- argv.each do |k,v|
+ argv.each do |k, v|
url << "#{k}=#{v}&"
end
# p url
JSON.parse(FeedlyApi.get(url, @auth_token), symbolize_names: true)
end