Baidu knows the open platform OPEN API PHP SDK V0.1 (data cooperation)
Provides interface:
getQuestionList obtains the question list under the corresponding category based on Baidu's known category ID
getQuestionSearch searches the matching question list in Baidu Knows based on the search keywords
getQuestionInfo obtains the data and answers of the corresponding question based on Baidu's question ID
getQuestionAnswer obtains the answer to the data corresponding to the question based on Baidu knowing the question ID and answer ID.
question Ask a question to Baidu Know
answer To answer Baidu’s questions, the SDK requires CURL to be enabled.
Test code:
$zhidaoopenapi = new ZhidaoOpenApi();
$list = $zhidaoopenapi->getQuestionList(92);
print_r($list);
Baidu knows the open platform:
http://www.baidu.com/search/openiknow/
After applying, contact Baidu customer service to request conversion to data cooperation. After the application is successful, Baidu will notify you of the APP KEY and SECRET via email.
You can use this SDK to connect your website to the Baidu Open Platform.
Let Baidu know the questions flowing into your website continuously, and let your answers return to Baidu know.
Although Baidu does not give weight to external links that Baidu knows, other search engines give weight to external links that Baidu knows!