Method: HyperGraph.get
- Defined in:
- lib/hyper_graph.rb
.get(requested_object_id, options = {}) ⇒ Object
Request an object from the social graph
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/hyper_graph.rb', line 17 def get(requested_object_id, = {}) http = initialize_http_connection request_path = "/#{requested_object_id}" query = build_query() request_path << "?#{query}" unless query=="" http_response = http.get(request_path) data = extract_data(JSON.parse(http_response.body)) normalize_response(data) end |