Module: FeedlyApi::Request
- Included in:
- Client
- Defined in:
- lib/feedly_api/request.rb
Constant Summary collapse
- ENDPOINT_BASE =
"http://cloud.feedly.com".freeze
- API_VERSION_PATH =
'/v3/'.freeze
Instance Method Summary collapse
- #delete(path, params = {}) ⇒ Object
- #get(path, params = {}) ⇒ Object
- #post(path, params = {}) ⇒ Object
- #put(path, params = {}) ⇒ Object
Instance Method Details
#delete(path, params = {}) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/feedly_api/request.rb', line 27 def delete(path, params = {}) path = API_VERSION_PATH + path res = conn.delete(path, params) respond(res) end |
#get(path, params = {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/feedly_api/request.rb', line 6 def get(path, params = {}) path = API_VERSION_PATH + path res = conn.get(path, params) respond(res) end |
#post(path, params = {}) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/feedly_api/request.rb', line 13 def post(path, params = {}) path = API_VERSION_PATH + path res = conn.post(path, params) respond(res) end |
#put(path, params = {}) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/feedly_api/request.rb', line 20 def put(path, params = {}) path = API_VERSION_PATH + path res = conn.post(path, params) respond(res) end |