简体   繁体   English

如何使用带有授权的请求模块执行卷曲操作:不记名令牌?

[英]How to execute curl operation using request module with authorizaion: bearer token?

I am using Cloud Foundry for Bluemix app creation in that curl operations having Authorization:bearer xxxxx token.我正在使用 Cloud Foundry 在具有Authorization:bearer xxxxx令牌的 curl 操作中创建 Bluemix 应用程序。
How can I include Authorization: bearer token in request module?如何在请求模块中包含授权:不记名令牌?

The plain open source Clound Foundry client is able to curl the api like this:普通的开源 Clound Foundry 客户端能够像这样 curl api:

$ cf curl -X GET https://.../v2/...

for instance:例如:

$ cf curl -X GET /v2/apps

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM