为什么我收到此 api 请求的 500 错误
Why am I getting a 500 error for this api request
我正在尝试使用 guzzle 从 https://idf.intven.com/public_patents. The page loads data with AJAX by making request to https://idf.intven.com/public_patent_listing.json 获取数据。
我正在为他们的另一个网站工作,他们想使用这些数据,所以我试图用 guzzle 获取这些数据,但我不断收到 500 个错误。
$this->client = new Client();
$this->client->post( 'https://idf.intven.com/public_patent_listing.json', [
'verify' => false,
'json' => [
"report_type" => "public_patent_listing",
"queryFields" => [],
"filters" => [],"per_page" => 16,
"from" => 0,
"sort" => "issued_on",
"sort_order" => "desc"
],
]);
可能是因为您使用的是数组而不是 json 对象。将方括号更改为主要对象的大括号和其中的 json
个对象
我正在尝试使用 guzzle 从 https://idf.intven.com/public_patents. The page loads data with AJAX by making request to https://idf.intven.com/public_patent_listing.json 获取数据。
我正在为他们的另一个网站工作,他们想使用这些数据,所以我试图用 guzzle 获取这些数据,但我不断收到 500 个错误。
$this->client = new Client();
$this->client->post( 'https://idf.intven.com/public_patent_listing.json', [
'verify' => false,
'json' => [
"report_type" => "public_patent_listing",
"queryFields" => [],
"filters" => [],"per_page" => 16,
"from" => 0,
"sort" => "issued_on",
"sort_order" => "desc"
],
]);
可能是因为您使用的是数组而不是 json 对象。将方括号更改为主要对象的大括号和其中的 json
个对象