lib/pupil/essentials.rb in pupil-0.6.3 vs lib/pupil/essentials.rb in pupil-0.7
- old
+ new
@@ -42,14 +42,16 @@
end
end
def get(url, param={})
param_s = serialize_parameter(param)
+ puts "/1.1/"+url+param_s
begin
- response = @access_token.get(url+param_s).body
+ response = @access_token.get("/1.1/"+url+param_s).body
rescue => vars
raise NetworkError, vars
end
+
result = JSON.parse(response)
return (result["errors"].nil? rescue true)? result : false
end
def post(url, param={})
\ No newline at end of file