We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6810c68 commit e83df39Copy full SHA for e83df39
lib/nirvanahq/task.rb
@@ -3,12 +3,12 @@
3
class NirvanaHQ
4
5
def post payload
6
- 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}'`
7
end
8
9
# final form tbd. For now, have it parse out the results of the request, and send that along as a hash obj
10
def everything
11
- 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'`)
12
raw['results']
13
14
0 commit comments