草庐IT

cfclient

全部标签

go - 如何使用 REST API 登录 IBM Bluemix?

我正在尝试使用CloudFoundrygo-cfclient在Go中使用IBMBluemix和RESTAPI。我的登录过程已经失败。我正在使用以下示例代码并通过传入Bluemix端点“https://api.ng.bluemix.net”和我的用户标识/密码信息来调用该程序。packagemainimport("flag""fmt""os"cfclient"github.com/cloudfoundry-community/go-cfclient")funcmain(){api:=flag.String("api","","APIendpoint")username:=flag.Str