#NEWLINE# def start( self , hash = None , name = None , id = None ) : #NEWLINE# #INDENT# ' Start a recording for the provided hash\n\n            :param hash: The hash to start recording with\n            :type hash: str\n            :param name: The name of the recording\n            :type name: str\n            :param id: The id of the recording\n            :type id: str\n            :return: dict of REST API output with headers attached\n            :rtype: :class:`~datasift.request.DictResponse`\n            :raises: :class:`~datasift.exceptions.DataSiftApiException`,\n                :class:`requests.exceptions.HTTPError`\n        ' #NEWLINE# if id : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# 'id' : id , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hash : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# 'hash' : hash , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise BadRequest ( 'An ID or a hash must be provided' ) #NEWLINE# #UNINDENT# #UNINDENT# if name : #NEWLINE# #INDENT# params [ 'name' ] = name #NEWLINE# #UNINDENT# return self . request . post ( 'start' , params )