android studio - Watson API Call failing -
doing api call android studio. there no errror when run @ adb, app stops saying "unfortunately app has stopped" can please see , tell doing wrong? much
you have set workspace id application, understand?
example:
conversationservice service = new conversationservice("08-11-2016"); service.setusernameandpassword("{username}", "{password}"); messagerequest newmessage = new messagerequest.builder() .inputtext("turn on lights") // replace context obtained initial request //.context(...) .build(); string **workspaceid** = "**id conversation...**"; messageresponse response = service .message(workspaceid, newmessage) .execute(); system.out.println(response);
Comments
Post a Comment