Skip to content

Commit e83df39

Browse files
committed
include appid identifying as gem
1 parent 6810c68 commit e83df39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/nirvanahq/task.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
class NirvanaHQ
44

55
def post payload
6-
result = `curl -sX POST 'https://api.nirvanahq.com/?api=json&authtoken=#{@token}' -d '#{payload}'`
6+
result = `curl -sX POST 'https://api.nirvanahq.com/?api=json&appid=gem&authtoken=#{@token}' -d '#{payload}'`
77
end
88

99
# final form tbd. For now, have it parse out the results of the request, and send that along as a hash obj
1010
def everything
11-
raw = JSON.parse(`curl -sX GET 'https://api.nirvanahq.com/?api=rest&authtoken=#{@token}&method=everything&since=0'`)
11+
raw = JSON.parse(`curl -sX GET 'https://api.nirvanahq.com/?api=rest&appid=gem&authtoken=#{@token}&method=everything&since=0'`)
1212
raw['results']
1313
end
1414

0 commit comments

Comments
 (0)