#NEWLINE# def get_batch( self , push_ids ) : #NEWLINE# #INDENT# if ( ( not push_ids ) or ( push_ids is [ ] ) ) : #NEWLINE# #INDENT# raise ValueError ( 'push_ids cannot be empty' ) #NEWLINE# #UNINDENT# if ( not isinstance ( push_ids , list ) ) : #NEWLINE# #INDENT# raise TypeError ( 'push_ids must be a list' ) #NEWLINE# #UNINDENT# if ( len ( push_ids ) > 100 ) : #NEWLINE# #INDENT# raise ValueError ( 'push_ids can not contain more than 100 IDs' ) #NEWLINE# #UNINDENT# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# data [ 'push_ids' ] = push_ids #NEWLINE# body = json . dumps ( data ) #NEWLINE# url = '{0}perpush/detail/' . format ( common . REPORTS_URL ) #NEWLINE# response = self . airship . _request ( 'POST' , body , url , version = 3 ) #NEWLINE# return response . json ( )