Skip to content

Instantly share code, notes, and snippets.

@jsloyer
Created October 17, 2014 15:23
Show Gist options
  • Save jsloyer/a2f5a80c6726b8202b4f to your computer and use it in GitHub Desktop.
Save jsloyer/a2f5a80c6726b8202b4f to your computer and use it in GitHub Desktop.
public WatsonUserModeller()
{
//TODO read env VCAP_SERVICES and parse it into JSON
this.username = "";
this.password = "";
this.base_url = "";
this.profile_api = Config.WATSON_PROF_API;
this.visual_api = Config.WATSON_VIZ_API;
this.executor = Executor.newInstance().auth(username, password);
if (this.executor == null)
{
System.err.println("Authentication failed in WatsonUserModeller.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment