IBM / ios-virtual-assistant-app

WARNING: This repository is no longer maintained
https://developer.ibm.com/patterns/build-a-virtual-assistant-for-ios-with-watson/
MIT License
25 stars 17 forks source link

use dummy strings for keys #1

Open stevemar opened 5 years ago

stevemar commented 5 years ago

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.

sandra-calvo commented 5 years ago

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

sinny777 commented 5 years ago

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

rwhite54 commented 5 years ago

Thank you sinny777, that makes it clear now.

mklybor commented 5 years ago

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!