#NEWLINE# def _get_drive_api( credentials ) : #NEWLINE# #INDENT# '\n    For a given set of credentials, return a drive API object.\n    ' #NEWLINE# http = httplib2 . Http ( ) #NEWLINE# http = credentials . authorize ( http ) #NEWLINE# service = discovery . build ( 'drive' , 'v2' , http = http ) #NEWLINE# service . credentials = credentials #NEWLINE# return service