code: def get_curricula_by_term(term, view_unpublished=False):
      
      view_unpublished = "true" if view_unpublished else "false"
      url = "{}?{}".format(
          curriculum_search_url_prefix,
          urlencode([
                     ("quarter", term.quarter.lower(),),
                     ("year", term.year,),
                     ("view_unpublished", view_unpublished,)]))
      return _json_to_curricula(get_resource(url))
docs: Returns a list of restclients.Curriculum models, for the passed
      Term model.