请问使用api请求,已经申请了令牌,并且已经在命令行替换了令牌,但是还是提示Unauthorized,是什么原因?
curl -H "Authorization: hmp_30f93314d379a7fd6e73aabb0dcaf04bf29894b0eedf162948da73e51ccxxxxx" https://api.hamibot.com/
回答
请求的地址要改为相应的,比如
curl -H "Authorization: 你的令牌(hmp 开头)" \
https://api.hamibot.com/v1/robots