Closed bonjourmauko closed 4 years ago
Hello,
Comme documenté ici, le header à envoyer est X-Token.
X-Token
Example :
curl -X POST "https://proxy-orientation.covid19.etalab.gouv.fr/questionnaire" -H "Accept: application/json" -H "X-Token: f1b09c6e-aa31-4109-af3c-68c91def9534" -H "Content-Type: application/json" -d "{\"questionnaire\":{\"calculations\":{\"fever_algo\":true,\"heart_disease_algo\":true,\"immunosuppressant_disease_algo\":true,\"immunosuppressant_drug_algo\":true},\"metadata\":{\"algo_version\":\"2020-04-04\",\"form_version\":\"2020-04-04\",\"orientation\":\"orientation_SAMU\"},\"respondent\":{\"age_range\":\"sup_70\",\"imc\":21.9,\"postal_code\":\"75000\"},\"risk_factors\":{\"breathing_disease\":true,\"cancer\":true,\"diabetes\":true,\"heart_disease\":1,\"immunosuppressant_disease\":1,\"immunosuppressant_drug\":1,\"kidney_disease\":true,\"liver_disease\":true,\"pregnant\":1},\"symptoms\":{\"agueusia_anosmia\":true,\"breathlessness\":true,\"cough\":true,\"diarrhea\":true,\"feeding_day\":true,\"fever\":999,\"sore_throat_aches\":true,\"temperature_cat\":\"35.5-37.7\",\"tiredness\":true,\"tiredness_details\":true}}}"
Corrigé
Hello,
Comme documenté ici, le header à envoyer est
X-Token
.Example :