@@ -462,16 +462,16 @@ def normalize_paging_args(self, limit=None, offset=0):
462462
463463 return (limit , offset )
464464
465- def json_api_call (self , method , path , params , sig_version = None ):
465+ def json_api_call (self , method , path , params ):
466466 """
467467 Call a Duo API method which is expected to return a JSON body
468468 with a 200 status. Return the response data structure or raise
469469 RuntimeError.
470470 """
471- (response , data ) = self .api_call (method , path , params , sig_version = sig_version )
471+ (response , data ) = self .api_call (method , path , params )
472472 return self .parse_json_response (response , data )
473473
474- def json_paging_api_call (self , method , path , params , sig_version = None ):
474+ def json_paging_api_call (self , method , path , params ):
475475 """
476476 Call a Duo API method which is expected to return a JSON body
477477 with a 200 status. Return a generator that can be used to get
@@ -485,13 +485,13 @@ def json_paging_api_call(self, method, path, params, sig_version=None):
485485
486486 while next_offset is not None :
487487 params ['offset' ] = str (next_offset )
488- (response , data ) = self .api_call (method , path , params , sig_version = sig_version )
488+ (response , data ) = self .api_call (method , path , params )
489489 (objects , metadata ) = self .parse_json_response_and_metadata (response , data )
490490 next_offset = metadata .get ('next_offset' , None )
491491 for obj in objects :
492492 yield obj
493493
494- def json_cursor_api_call (self , method , path , params , get_records_func , sig_version = None ):
494+ def json_cursor_api_call (self , method , path , params , get_records_func ):
495495 """
496496 Call a Duo API endpoint which utilizes a cursor in some responses to
497497 page through a set of data. This cursor is supplied through the optional
@@ -520,7 +520,7 @@ def json_cursor_api_call(self, method, path, params, get_records_func, sig_versi
520520 while True :
521521 if next_offset is not None :
522522 params ['offset' ] = str (next_offset )
523- (http_resp , http_resp_data ) = self .api_call (method , path , params , sig_version = sig_version )
523+ (http_resp , http_resp_data ) = self .api_call (method , path , params )
524524 (response , metadata ) = self .parse_json_response_and_metadata (
525525 http_resp ,
526526 http_resp_data ,
0 commit comments