| sidebar_position | 8 |
|---|---|
| title | 🔗 调用 API |
| icon | cloud-bolt |
在调用前需要满足以下条件:
😜 假设:
- 消费者 的 授权证书:
- 认证类型:API Key
- 参数位置:Header
- 参数名称:Authorization
- 密钥:96f55...ee4
- 服务 的 API 调用地址为: http://api.apipark.com/cda53bf2/demo\_translation\_api
您可以使用以下任意一种方式进行调用服务API。
在 API 测试工具中,在 Header 中添加 Authorization 参数,并且将参数值设置为 96f55...ee4:
在命令行中输入:
curl -X POST -H "Authorization: 96f55...ee4" \
-H "Content-Type: application/json" -d "request body content" \
http://api.apipark.com/cda53bf2/demo_translation_api
