Class: Keybase::Request::Base
- Inherits:
-
Object
- Object
- Keybase::Request::Base
show all
- Defined in:
- lib/keybase/request/base.rb
Class Method Summary
collapse
Class Method Details
.get(url, params = {}) ⇒ Object
7
8
9
|
# File 'lib/keybase/request/base.rb', line 7
def self.get(url, params={})
Keybase::Response.new(conn.get(url, params)).body
end
|
.post(url, params = {}) ⇒ Object
11
12
13
14
15
|
# File 'lib/keybase/request/base.rb', line 11
def self.post(url, params={})
response = Keybase::Response.new(conn.post(url, params))
TokenStore.cookie = response.cookie if response.cookie
response.body
end
|