#NEWLINE# def get_with_precision( self , push_id , precision ) : #NEWLINE# #INDENT# if ( not push_id ) : #NEWLINE# #INDENT# raise TypeError ( 'push_id cannot be empty' ) #NEWLINE# #UNINDENT# if ( precision not in [ 'HOURLY' , 'DAILY' , 'MONTHLY' ] ) : #NEWLINE# #INDENT# raise ValueError ( "Precision must be 'HOURLY', 'DAILY', or 'MONTHLY'" ) #NEWLINE# #UNINDENT# url = '{0}perpush/series/{1}' . format ( common . REPORTS_URL , push_id ) #NEWLINE# params = { #NEWLINE# #INDENT# 'precision' : url , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . airship . _request ( 'GET' , None , url , version = 3 , params = params ) #NEWLINE# return response . json ( )