IBM / ios-virtual-assistant-app

WARNING: This repository is no longer maintained

Home Page:https://developer.ibm.com/patterns/build-a-virtual-assistant-for-ios-with-watson/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use dummy strings for keys

stevemar opened this issue · 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.

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

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

Thank you sinny777, that makes it clear now.

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!