Harshdeep Singh
Harshdeep Singh

Reputation: 337

IBM Bluemix user defined variables

How can we access USER-DEFINED variables in IBM Bluemix in Python? I have made a token in IBM Bluemix, but I am unable to access it from my Python script.

In the bluemix UI,

token = <actual value of token>

Upvotes: 0

Views: 100

Answers (1)

Harshdeep Singh
Harshdeep Singh

Reputation: 337

Solved it.

os.getenv('name of the key')

where name of the key is key defined in Bluemix UI.

Upvotes: 0

Related Questions