C#
curl
java
ruby
php
python
nodeJs
go
const https = require('https');
const options = {
'method': 'POST',
'hostname': 'https://dashboard.apiuni.cn/api/uni_api',
'path': 'api/uni_api/consume/20aaab148?image=图片base64字符串,image、url二选一&url=图片url,image、url二选一'
};
const req = https.request(options, (res) => {
const chunks = [];
res.on("data", (chunk) => {
chunks.push(chunk);
});
res.on("end", (chunk) => {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", (error) => {
console.error(error);
});
});
req.end();
const codes=
* 以上示例代码仅供参考,建议根据您的实际业务场景及技术架构发起 HTTP API 请求