Code Samples with step-by-step instructions

  • NearBY - A swift iOS app for finding the best places NearBY with kitura backend API, Bluemix Mobile and Watson Services.
  • WatBot - An Android ChatBot powered by IBM Watson and using Conversation Service on IBM Bluemix.
  • Cloud Co Insurance - The application showcases cognitive and cloud computing ideas in the context of insurance.
  • Conversation Simple - A simple sample application demonstrating the conversation api.
  • Conversation Enhanced - This application demonstrates the combination of the IBM Watson Conversation and Retrieve and Rank services.

Other Code Samples



npm install dotenv 

Cloudant (DB)

Before querying the cloudant db, Create a cloudant DB and follow the steps below, create a .env file with your Cloudant credentials in the root directory.

 cloudant_username=myaccount # Replace myaccount with your account name
 cloudant_password='secret'  # Replace secret with your password
View MainActivity.cs
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
//MQA references
using Com.Ibm.Mqa.Config;
View Metadata.xml
This sample removes the class:
<remove-node path="/api/package[@name='']/class[@name='AsyncTaskLoader.LoadTask']" />
This sample removes the method:
<remove-node path="/api/package[@name='']/class[@name='CursorLoader']/method[@name='loadInBackground']" />
<remove-node path="/api/package[@name='']/class[@name='InjectionPoint.Factory.1']"/>
View IBM-Bluemix-Setup.html
IBM Bluemix setup for using Watson and Cloudant services