Fabien Fleureau
Fabien Fleureau

Reputation: 693

How to check credentials against botframework api

I'd like to check that my bot credentials (appId + appSecret) are ok to connect to https://api.botframework.com/bot/v1.0/messages.

I can't send a real message because i have no conversation running so I tried to post the following json message : { "type": "Ping"} but the response i got was { "error": { "message": "Expression evaluation failed. Object reference not set to an instance of an object.", "code": "ServiceError" } }

Is there any way to check if my access to the api is ok?

Upvotes: 1

Views: 152

Answers (2)

Koshin
Koshin

Reputation: 21

Download the BotFrameworkEmulator to test connectivity to your bot. It works on windows and OSX if you have mono installed. You can change the default settings that the emulator uses by typing '/settings' after running it. You will be prompted to enter your appId, appSecret and url endpoint for sending and receiving messages to/from your bot.

You can also use the directline rest api to initiate conversations and send messages to your bot

Upvotes: 0

Joe Mayo
Joe Mayo

Reputation: 7513

If you've registered your bot, you can visit the Bot Framework page, click on the My Bots menu, and select your registered bot. On your bot page, scroll down to the bottom left and there's a test box.

Also, you can use the emulator. It has a place in the upper right corner to replace the default credentials with your bot credentials. Then change the URL to where you have your bot deployed. Tip: remember to append 'api/messages' to the URL.

Upvotes: 0

Related Questions