Advertisement
KoctrX

Untitled

Jul 16th, 2024
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const myHeaders = new Headers();
  2. myHeaders.append("Authorization", "2eea3c02821bed1656a1c9990c16c730c40f15f23cc1bd16331b8bffc7290960");
  3. myHeaders.append("Content-Type", "application/json");
  4.  
  5. const raw = JSON.stringify({
  6.   "id": "test_for_processing",
  7.   "unemployment_rate": 0.045,
  8.   "ftm_pay_rate_level_1": 1.233333333,
  9.   "ftm_pay_rate_level_7": 1.633333333,
  10.   "industry_of_the_last_job": "other",
  11.   "is_resume_submitted": "yes",
  12.   "drug_test": "invalid",
  13.   "ftm_score": 0.939393939393939,
  14.   "own_a_car": "yes",
  15.   "segment": "inexperienced & searching",
  16.   "snag_attitude_survey_hostility": 10,
  17.   "snag_attitude_survey_reliability": 10,
  18.   "snag_attitude_survey_integrity": 10,
  19.   "snag_attitude_survey_sexual_harassment": 10,
  20.   "snag_attitude_survey_computer_misuse": 10,
  21.   "snag_attitude_survey_good_impression": 0,
  22.   "snag_fit_survey_dependability": 10,
  23.   "snag_fit_survey_tough_minded": 10,
  24.   "snag_fit_survey_conventional": 10,
  25.   "snag_fit_survey_extroversion": 5,
  26.   "snag_fit_survey_stability": 10,
  27.   "snag_fit_survey_team": 0.96,
  28.   "snag_fit_survey_overall": 0.74,
  29.   "stability": 0.78,
  30.   "physicality": 0.67,
  31.   "quality": 0.75,
  32.   "client_service_empathy": 0.88,
  33.   "safety": 0.74,
  34.   "team_work": 0.97,
  35.   "world_view": 0.95,
  36.   "manageability": 0.82,
  37.   "trustworthiness_integrity": 0.86,
  38.   "attitude_towards_cleaning": 0.79,
  39.   "fitness_for_the_job": 0.62,
  40.   "open_mindedness": 0.76,
  41.   "coachability": 0.69,
  42.   "conscientiousness": 0.71,
  43.   "travel_sensitivity": 0.76,
  44.   "comfortable_with_pets": 0.34,
  45.   "team_or_solo": 0.24,
  46.   "criminal_background": 0.45,
  47.   "feedbacks": 0.81,
  48.   "job_outlook": 0.8,
  49.   "light_up_when_discuss_about_the_job": "yes",
  50.   "do_you_personally_like_this_candidate": "yes",
  51.   "self_evaluation_score_for_the_job": 7,
  52.   "benefit_of_job": 0.8,
  53.   "drug_attitude": 0.75,
  54.   "vehicle_dl": 0.88
  55. });
  56.  
  57. const requestOptions = {
  58.   method: "POST",
  59.   headers: myHeaders,
  60.   body: raw,
  61.   redirect: "follow"
  62. };
  63.  
  64. fetch("http://54.211.75.66:8052/candidate_data", requestOptions)
  65.   .then((response) => response.text())
  66.   .then((result) => console.log(result))
  67.   .catch((error) => console.error(error));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement