nodes: 0, module; 1, function_definition; 2, function_name:list; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, default_parameter; 8, default_parameter; 9, default_parameter; 10, default_parameter; 11, default_parameter; 12, default_parameter; 13, default_parameter; 14, default_parameter; 15, default_parameter; 16, default_parameter; 17, expression_statement; 18, expression_statement; 19, expression_statement; 20, expression_statement; 21, if_statement; 22, if_statement; 23, expression_statement; 24, expression_statement; 25, expression_statement; 26, expression_statement; 27, expression_statement; 28, expression_statement; 29, expression_statement; 30, expression_statement; 31, return_statement; 32, identifier:source_ids; 33, None; 34, identifier:seniority; 35, string:"all"; 36, identifier:stage; 37, None; 38, identifier:date_start; 39, string:"1494539999"; 40, identifier:date_end; 41, identifier:TIMESTAMP_NOW; 42, identifier:filter_id; 43, None; 44, identifier:page; 45, integer:1; 46, identifier:limit; 47, integer:30; 48, identifier:sort_by; 49, string; 50, identifier:filter_reference; 51, None; 52, identifier:order_by; 53, None; 54, comment:"""
          Retreive all profiles that match the query param.
  
          Args:
              date_end:   <string> REQUIRED (default to timestamp of now)
                          profiles' last date of reception
              date_start: <string> REQUIRED (default to "1494539999")
                          profiles' first date of reception
              filter_id:     <string>
              limit:      <int> (default to 30)
                          number of fetched profiles/page
              page:       <int> REQUIRED default to 1
                          number of the page associated to the pagination
              seniority:  <string> defaut to "all"
                          profiles' seniority ("all", "senior", "junior")
              sort_by:    <string>
              source_ids: <array of strings> REQUIRED
              stage:      <string>
  
          Returns
              Retrieve the profiles data as <dict>
  
          """; 55, assignment; 56, assignment; 57, assignment; 58, identifier:filter_id; 59, block; 60, identifier:filter_reference; 61, block; 62, assignment; 63, assignment; 64, assignment; 65, assignment; 66, assignment; 67, assignment; 68, assignment; 69, assignment; 70, call; 71, string_content:ranking; 72, identifier:query_params; 73, dictionary; 74, subscript; 75, call; 76, subscript; 77, call; 78, expression_statement; 79, expression_statement; 80, subscript; 81, call; 82, subscript; 83, call; 84, subscript; 85, call; 86, subscript; 87, call; 88, subscript; 89, call; 90, subscript; 91, call; 92, subscript; 93, identifier:order_by; 94, identifier:response; 95, call; 96, attribute; 97, argument_list; 98, identifier:query_params; 99, string:"date_end"; 100, identifier:_validate_timestamp; 101, argument_list; 102, identifier:query_params; 103, string:"date_start"; 104, identifier:_validate_timestamp; 105, argument_list; 106, assignment; 107, assignment; 108, identifier:query_params; 109, string:"limit"; 110, identifier:_validate_limit; 111, argument_list; 112, identifier:query_params; 113, string:"page"; 114, identifier:_validate_page; 115, argument_list; 116, identifier:query_params; 117, string:"seniority"; 118, identifier:_validate_seniority; 119, argument_list; 120, identifier:query_params; 121, string:"sort_by"; 122, identifier:_validate_sort_by; 123, argument_list; 124, identifier:query_params; 125, string:"source_ids"; 126, attribute; 127, argument_list; 128, identifier:query_params; 129, string:"stage"; 130, identifier:_validate_stage; 131, argument_list; 132, identifier:query_params; 133, string:"order_by"; 134, attribute; 135, argument_list; 136, identifier:response; 137, identifier:json; 138, identifier:date_end; 139, string:"date_end"; 140, identifier:date_start; 141, string:"date_start"; 142, subscript; 143, call; 144, subscript; 145, call; 146, identifier:limit; 147, identifier:page; 148, identifier:seniority; 149, identifier:sort_by; 150, identifier:json; 151, identifier:dumps; 152, call; 153, identifier:stage; 154, attribute; 155, identifier:get; 156, string:"profiles"; 157, identifier:query_params; 158, identifier:query_params; 159, string:"filter_id"; 160, identifier:_validate_filter_id; 161, argument_list; 162, identifier:query_params; 163, string:"filter_reference"; 164, identifier:_validate_filter_reference; 165, argument_list; 166, identifier:_validate_source_ids; 167, argument_list; 168, identifier:self; 169, identifier:client; 170, identifier:filter_id; 171, identifier:filter_reference; 172, identifier:source_ids
code: def list(self, source_ids=None, seniority="all", stage=None,
              date_start="1494539999", date_end=TIMESTAMP_NOW, filter_id=None,
              page=1, limit=30, sort_by='ranking', filter_reference=None, order_by=None):
          """
          Retreive all profiles that match the query param.
  
          Args:
              date_end:   <string> REQUIRED (default to timestamp of now)
                          profiles' last date of reception
              date_start: <string> REQUIRED (default to "1494539999")
                          profiles' first date of reception
              filter_id:     <string>
              limit:      <int> (default to 30)
                          number of fetched profiles/page
              page:       <int> REQUIRED default to 1
                          number of the page associated to the pagination
              seniority:  <string> defaut to "all"
                          profiles' seniority ("all", "senior", "junior")
              sort_by:    <string>
              source_ids: <array of strings> REQUIRED
              stage:      <string>
  
          Returns
              Retrieve the profiles data as <dict>
  
          """
          query_params = {}
          query_params["date_end"] = _validate_timestamp(date_end, "date_end")
          query_params["date_start"] = _validate_timestamp(date_start, "date_start")
          if filter_id:
              query_params["filter_id"] = _validate_filter_id(filter_id)
          if filter_reference:
              query_params["filter_reference"] = _validate_filter_reference(filter_reference)
          query_params["limit"] = _validate_limit(limit)
          query_params["page"] = _validate_page(page)
          query_params["seniority"] = _validate_seniority(seniority)
          query_params["sort_by"] = _validate_sort_by(sort_by)
          query_params["source_ids"] = json.dumps(_validate_source_ids(source_ids))
          query_params["stage"] = _validate_stage(stage)
          query_params["order_by"] = order_by
  
          response = self.client.get("profiles", query_params)
          return response.json()