lib/feedly_api/client.rb in feedly_api-0.4.2 vs lib/feedly_api/client.rb in feedly_api-0.5.0

- old
+ new

@@ -1,11 +1,28 @@ +require 'feedly_api/api' + module FeedlyApi class Client + include API + + attr_reader :auth_token + def initialize(auth_token = nil) @auth_token = auth_token end - def feed(feed_url) - FeedlyApi::Feed.new feed_url + def user_id + get_user_profile[:id] + end + + private + + def make_request(path, argv = {}) + url = FeedlyApi::API_ENDPOINT + path + '?' + argv.each do |k,v| + url << "#{k}=#{v}&" + end + # p url + JSON.parse(FeedlyApi.get(url, @auth_token), symbolize_names: true) end end end