Text-Processing

부분 유료
분류별 Jacob | 업데이트됨 एक महीने पहले | Text Analysis
인기

9.5 / 10

지연 시간

318ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Error "Form Validation Errors text: This field is required."

Rapid account: Ahsanwani
Ahsanwani
8 वर्ष पहले

I am using snippet code provided on mashape and my text field is not empty , What could be the problem, im using xampp local server.

Unirest\Response Object ( [code] => 400 [raw_body] => Form Validation Errors text: This field is required. [body] => Form Validation Errors text: This field is required. [headers] => Array ( [0] => HTTP/1.1 400 BAD REQUEST

Rapid account: Ahsanwani
Ahsanwani Commented 8 वर्ष पहले

Ok. Thankyou for your help.

Rapid account: Japerk
japerk Commented 8 वर्ष पहले

It does look like you’re doing the same thing as the PHP example, so maybe try contacting Mashape support about this, as they can probably help more than I can.

Rapid account: Japerk
japerk Commented 8 वर्ष पहले

I’m not really familiar with PHP, but are you sure the second array parameters are the POST parameters, and not url parameters?

Rapid account: Ahsanwani
Ahsanwani Commented 8 वर्ष पहले

this is the code im using =======>
require ‘vendor/autoload.php’;
response=Unirest\Request::post("https://japerktextprocessing.p.mashape.com/sentiment/",array("XMashapeKey"=>"mykey","ContentType"=>"application/xwwwformurlencoded","Accept"=>"application/json"),array("language"=>"english","text"=>"greatmovie"));echoprintr(response = Unirest\Request::post("https://japerk-text-processing.p.mashape.com/sentiment/", array( "X-Mashape-Key" => "************my key****************", "Content-Type" => "application/x-www-form-urlencoded", "Accept" => "application/json" ), array( "language" => "english", "text" => "great movie" ) ); echo print_r(response);

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입