-->

How to get an API key for MessageHub's managem

2019-09-07 21:13发布

问题:

I need to programmmtically create topics - see my other question here: MessageHub - api for creating topics?

The MessageHub Management API requires an apiKey to interact with it.

How do I generate an API key? I'm guessing this is a generic bluemix authentication service, but I'm not sure where this resides or how I can interact with it.

回答1:

Go to the Bluemix console and navigate to Message Hub’s Bluemix dashboard by clicking on your service. Then switch to the “Service Credentials” tab and you should see some json properties as Credentials-1. The 48 character api_key is what you need.