File tree 1 file changed +13
-5
lines changed
Filter options
1 file changed +13
-5
lines changed
Original file line number Diff line number Diff line change @@ -254,25 +254,33 @@ def list(self, page=1, per_page=50):
254
254
255
255
def details (self , job_id ):
256
256
"""
257
- Get some job details
257
+ Gets details for the given job
258
258
"""
259
- pass
259
+ data = {'api_key' : self .api_key }
260
+ return self .get (self .base_url + '/%s' % str (job_id ),
261
+ params = urlencode (data ))
260
262
261
263
def resubmit (self , job_id ):
262
264
"""
263
265
Resubmits a job
264
266
"""
265
- pass
267
+ data = {'api_key' : self .api_key }
268
+ return self .get (self .base_url + '/%s/resubmit' % str (job_id ),
269
+ params = urlencode (data ))
266
270
267
271
def cancel (self , job_id ):
268
272
"""
269
273
Cancels a job
270
274
"""
271
- pass
275
+ data = {'api_key' : self .api_key }
276
+ return self .get (self .base_url + '/%s/cancel' % str (job_id ),
277
+ params = urlencode (data ))
272
278
273
279
def delete (self , job_id ):
274
280
"""
275
281
Deletes a job
276
282
"""
277
- pass
283
+ data = {'api_key' : self .api_key }
284
+ return self .delete (self .base_url + '/%s' % str (job_id ),
285
+ params = urlencode (data ))
278
286
You can’t perform that action at this time.
0 commit comments