#NEWLINE# def add_record( self , spreadsheet_key , table_id , fields , title = None , auth_token = None , **kwargs ) : #NEWLINE# #INDENT# 'Adds a new row to the table.\n\n    Args:\n      spreadsheet_key: str, The unique ID of this containing spreadsheet. This\n                       can be the ID from the URL or as provided in a\n                       Spreadsheet entry.\n      table_id: str, The ID of the table within the worksheet which should\n                receive this new record. The table ID can be found using the\n                get_table_id method of a gdata.spreadsheets.data.Table.\n      fields: dict of strings mapping column names to values.\n      title: str, optional The title for this row.\n      auth_token: An object which sets the Authorization HTTP header in its\n                  modify_request method. Recommended classes include\n                  gdata.gauth.ClientLoginToken and gdata.gauth.AuthSubToken\n                  among others. Represents the current user. Defaults to None\n                  and if None, this method will look for a value in the\n                  auth_token member of SpreadsheetsClient.\n    ' #NEWLINE# new_record = gdata . spreadsheets . data . Record ( ) #NEWLINE# if ( title is not None ) : #NEWLINE# #INDENT# new_record . title = atom . data . Title ( text = title ) #NEWLINE# #UNINDENT# for ( name , value ) in fields . iteritems ( ) : #NEWLINE# #INDENT# new_record . field . append ( gdata . spreadsheets . data . Field ( name = name , text = value ) ) #NEWLINE# #UNINDENT# return self . post ( new_record , ( RECORDS_URL % ( spreadsheet_key , table_id ) ) , auth_token = auth_token , ** title )