Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const myHeaders = new Headers();
- myHeaders.append("Authorization", "2eea3c02821bed1656a1c9990c16c730c40f15f23cc1bd16331b8bffc7290960");
- myHeaders.append("Content-Type", "application/json");
- const raw = JSON.stringify({
- "id": "test_for_processing",
- "unemployment_rate": 0.045,
- "ftm_pay_rate_level_1": 1.233333333,
- "ftm_pay_rate_level_7": 1.633333333,
- "industry_of_the_last_job": "other",
- "is_resume_submitted": "yes",
- "drug_test": "invalid",
- "ftm_score": 0.939393939393939,
- "own_a_car": "yes",
- "segment": "inexperienced & searching",
- "snag_attitude_survey_hostility": 10,
- "snag_attitude_survey_reliability": 10,
- "snag_attitude_survey_integrity": 10,
- "snag_attitude_survey_sexual_harassment": 10,
- "snag_attitude_survey_computer_misuse": 10,
- "snag_attitude_survey_good_impression": 0,
- "snag_fit_survey_dependability": 10,
- "snag_fit_survey_tough_minded": 10,
- "snag_fit_survey_conventional": 10,
- "snag_fit_survey_extroversion": 5,
- "snag_fit_survey_stability": 10,
- "snag_fit_survey_team": 0.96,
- "snag_fit_survey_overall": 0.74,
- "stability": 0.78,
- "physicality": 0.67,
- "quality": 0.75,
- "client_service_empathy": 0.88,
- "safety": 0.74,
- "team_work": 0.97,
- "world_view": 0.95,
- "manageability": 0.82,
- "trustworthiness_integrity": 0.86,
- "attitude_towards_cleaning": 0.79,
- "fitness_for_the_job": 0.62,
- "open_mindedness": 0.76,
- "coachability": 0.69,
- "conscientiousness": 0.71,
- "travel_sensitivity": 0.76,
- "comfortable_with_pets": 0.34,
- "team_or_solo": 0.24,
- "criminal_background": 0.45,
- "feedbacks": 0.81,
- "job_outlook": 0.8,
- "light_up_when_discuss_about_the_job": "yes",
- "do_you_personally_like_this_candidate": "yes",
- "self_evaluation_score_for_the_job": 7,
- "benefit_of_job": 0.8,
- "drug_attitude": 0.75,
- "vehicle_dl": 0.88
- });
- const requestOptions = {
- method: "POST",
- headers: myHeaders,
- body: raw,
- redirect: "follow"
- };
- fetch("http://54.211.75.66:8052/candidate_data", requestOptions)
- .then((response) => response.text())
- .then((result) => console.log(result))
- .catch((error) => console.error(error));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement