def get_google_files_in_folder(service, folder_id):
  """Get a list of files and folders in a folder in Google Drive

  Arguments:
    service: in order to use any of this library, the user needs to first build the service class using google ServiceAccountCredentials. see https://pypi.org/project/google-api-v3-helper/ or https://github.com/sbi-rviot/google_api_helper for a full example.
    folder_id: id of the folder you wish to get the folders list of.

  """
  files_list = []
  page_token = None
  while True:
    children = service.files().list(q="parents='"+folder_id+"' and trashed=false",
                                            spaces='drive',
                                            fields='nextPageToken, files(id, name)').execute()
    for file in children.get('files', []):
        files_list.append({'name':file.get('name'), 'id':file.get('id')})
    page_token = children.get('nextPageToken', None)
    if page_token is None:
        break
  return files_list