여기 아주 해키 해결 방법입니다 : 요청이 개발자 콘솔을 통해 잘 작동하기 때문에 , 난, 잘 작동하는 것 같다 요청을 검사하고 컬을 생각 repeate하려고 명령은 다음과 같다 :
curl 'https://dev.cognitive.microsoft.com/console/query' -H 'Content-Type: application/json' --data-binary '{"httpMethod":"GET","host":"api.cognitive.microsoft.com","scheme":"https","path":"bing/v5.0/news/?Category=Entertainment","headers":[{"name":"Host","value":"api.cognitive.microsoft.com","inputTypeValue":"text","revealed":false,"options":null,"required":true,"readonly":true,"custom":false},{"name":"Ocp-Apim-Subscription-Key","value":"<your key value>","inputTypeValue":"password","revealed":false,"options":[],"required":true,"readonly":false,"custom":true,"secret":true}],"parameters":[{"name":"Category","value":"Entertainment","inputType":"text","required":false,"options":["Business","Entertainment","Health","Politics","ScienceAndTechnology","Sports","US/UK","World"],"custom":false,"description":"<p>Specifies which category of news articles the caller wants returned.</p>\n","typeName":"string"}],"body":""}'
"호스트", "GET": "api.cognitive.microsoft.com을" "계획"나는 보내고있다
JSON 데이터는이이
{ "httpMethod"(위의 명령에서 복사)입니다 : "https", "path": "bing/v5.0/news /? Category = Entertainment", "헤더": [{ "이름": "호스트", "값": "api.cognitive.microsoft.com", "inputTypeValue": "텍스트", "공개": false, "옵션": null"Ocp-Apim-Subscription-Key", "값": "", "inputTypeValue": "필수": true, true ","readonly ": false,"custom ": true,"secret ": true]],"parameters ": [{"password " "options": [ "비즈니스", "엔터테인먼트", "건강", "건강", " 정치 ", "ScienceAndTechnology ","Sports ","US/UK ","World "],"custom ": fal se ","description ":"
발신자가 원하는 뉴스 기사 의 범주를 지정합니다.
\ n을 ","유형 이름 ":"문자열 "}], "몸 ":"내가 다른 해결책을 찾을 수 없기 때문에 지금은이 같은 올바른 표시됩니다
"}