lib/nirvanahq/task.rb in nirvanahq-0.1.3 vs lib/nirvanahq/task.rb in nirvanahq-0.1.4

- old
+ new

@@ -1,15 +1,15 @@ require 'uuid' class NirvanaHQ def post payload - result = `curl -sX POST 'https://api.nirvanahq.com/?api=json&authtoken=#{@token}' -d '#{payload}'` + result = `curl -sX POST 'https://api.nirvanahq.com/?api=json&appid=gem&authtoken=#{@token}' -d '#{payload}'` end # final form tbd. For now, have it parse out the results of the request, and send that along as a hash obj def everything - raw = JSON.parse(`curl -sX GET 'https://api.nirvanahq.com/?api=rest&authtoken=#{@token}&method=everything&since=0'`) + raw = JSON.parse(`curl -sX GET 'https://api.nirvanahq.com/?api=rest&appid=gem&authtoken=#{@token}&method=everything&since=0'`) raw['results'] end # task_details a hash with the task info def add task_details \ No newline at end of file