Method: RestGraph#get
- Defined in:
- lib/rest-graph/core.rb
#get(path, query = {}, opts = {}, &cb) ⇒ Object
extra options:
auto_decode: Bool # decode with json or not in this API request
# default: auto_decode in rest-graph instance
timeout: Int # the timeout for this API request
# default: timeout in rest-graph instance
secret: Bool # use secret_acccess_token or not
# default: false
cache: Bool # use cache or not; if it's false, update cache, too
# default: true
expires_in: Int # control when would the cache be expired
# default: nil
async: Bool # use eventmachine for http client or not
# default: false, but true in aget family
headers: Hash # additional hash you want to pass
# default: {}
262 263 264 |
# File 'lib/rest-graph/core.rb', line 262 def get path, query={}, opts={}, &cb request(opts, [:get , url(path, query, graph_server, opts)], &cb) end |