更新时间:2023-01-19 20:10:23
使用 header 方法,你应该可以将Authorization: token OAUTH-TOKEN"直接放入 Headers 部分下的 key input 中.
Using the header method, you should be able to put "Authorization: token OAUTH-TOKEN" directly into the key input under the Headers section.
显然将 OAUTH-TOKEN 替换为您的实际令牌.
Obviously replace OAUTH-TOKEN with your actual token.
以上是正确的,但我发现它并不明显.图像显示了要做什么,(a)在关键字段中,放入授权",(b)在值字段中,放入令牌".
The above is correct, but I found it non obvious. The image shows what to do, (a) in the key field, put in 'Authorization', (b) in the value field, put in 'token '.
在curl中查看,它在请求中添加了-H "Authorization: token
,这就是所需要的.
Looking at it in curl, it add -H "Authorization: token <your token here>"
to the request, which is what is needed.