You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
427 B
20 lines
427 B
const request = require('request');
|
|
|
|
async function main() {
|
|
var options = {
|
|
method: 'POST',
|
|
url: 'https://aip.baidubce.com/rpc/2.0/nlp/v1/keyword?access_token=&charset=UTF-8',
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
Accept: 'application/json',
|
|
},
|
|
};
|
|
|
|
request(options, function (error, response) {
|
|
if (error) throw new Error(error);
|
|
console.log(response.body);
|
|
});
|
|
}
|
|
|
|
main();
|