2016-09-26 2 views
0
내가 빙의 맞춤법 검사 API 작업이 오류로 계속 실행을 시도하고

"요청 매개 변수가 누락"API 반환 맞춤법 검사 :빙 오류

{"_type": "ErrorResponse", "errors": [{"code": "RequestParameterMissing", "message": "Required parameter is missing.", "parameter": "text"}]}% 

내가 요청을 보낼 컬 사용하고를하고 서식하고있다 like :

curl -v -X POST "https://api.cognitive.microsoft.com/bing/v5.0/spellcheck/?mode=Spell" -H "Content-Type: application/x-www/form-urlencoded" -H "Ocp-Apim-Subscription-Key: XXXXXXXXXXXXXXXXXXXX" --data-ascii "Text=Hello+Werld" 

나는이 문제가 무엇인지 여기 정말 잘 모르겠다. 감사합니다. 미리 감사드립니다. https://dev.cognitive.microsoft.com/docs/services/56e73033cf5ff80c2008c679/operations/56e73036cf5ff81048ee6727

답변

2

시도하십시오 : mode 소문자이어야하며, 양식 필드가 같은 지정해야

curl -v POST "https://api.cognitive.microsoft.com/bing/v5.0/spellcheck?mode=spell" -H "Ocp-Apim-Subscription-Key: $OXFORD_SPELL_KEY" --form "Text=Hello+Werld" 

또한이 나는 마이크로 소프트의 사이트에보고하고있는 예이다.

+0

감사합니다. –