ios-virtual-assistant-app icon indicating copy to clipboard operation
ios-virtual-assistant-app copied to clipboard

use dummy strings for keys

Open stevemar opened this issue 7 years ago • 4 comments

The keys in BMSCredentials were real, these should be replaced by dummy strings and the instructions updated to mention that if you're going through this as a code pattern then you'll need to update them.

stevemar avatar Sep 25 '18 18:09 stevemar

how do you get the service credentials? I only get username and password...

sandra-calvo avatar Oct 05 '18 21:10 sandra-calvo

You can use username and password as well instead of APIKey. I've just gone through the code in this repo and see that you can either configure conversationApikey or you can use conversationUsername and conversationPassword entries in BMSCredentials.plist file. You can see this logic in following file at line 128: https://github.com/IBM/virtual-assistant-ios/blob/master/VirtualAssistantforiOSwithWatsonCKFMG/ViewController.swift

sinny777 avatar Oct 10 '18 04:10 sinny777

Thank you sinny777, that makes it clear now.

rwhite54 avatar Oct 10 '18 09:10 rwhite54

just thought I would share.... had some difficulty in mapping what is in BMSCredentials and what the service makes available. seems like the example in the readme was for an older version of the service. here's what I got to work:

conversationUsername -> "apikey" conversationPassword -> the password that shows when inspecting the skill to be used. seems to be really associated with the service as a whole (same for all skills), but this is the only place I saw it show up conversationApikey -> the API Key that shows up when first looking at your service from the catalog, before launching the tool (this was the issue that I had in getting this to work, I tried using credentials from the skills that I had created) conversationUrl -> again use the URL that shows up before launching the tool, rather then URL associated with the skill workspace workspaceID -> here you use the workspaceID associated with the skill that is to be used appName -> I used "ioswatsonassistantexample", not sure it this is significant or not

enjoy your bot!

mklybor avatar Mar 15 '19 16:03 mklybor