jbjares2

cool

Aug 21st, 2018
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.37 KB | None | 0 0
  1.                   Conversation service = new Conversation("2018-02-16");
  2.                     service.setEndPoint("https://gateway.watsonplatform.net/conversation/api");
  3.                     service.setUsernameAndPassword(conversation_username, conversation_password);
  4.                     service.setSkipAuthentication(true);
  5.                     InputData input = new InputData.Builder(inputmessage).build();
  6.                     MessageOptions options = null;
  7. //5407627322769287
  8.                     if(context==null || "".equals(context)){
  9.                          options = new MessageOptions.Builder(workspace_id).input(input).build();
  10.                     }else{
  11.                          options = new MessageOptions.Builder(workspace_id).input(input).context(context).build();
  12.                     }
  13. //4915758581868#wi637168#n8upm2WNPC
  14.                     if(options==null){
  15.                         throw new NullPointerException("Options null!");
  16.                     }
  17.  
  18.                     MessageResponse response = service.message(options).execute();
  19.  
  20.  
  21. contact joao.bosco.jares.alves.chaves_at_fit.fraunhofer.de
  22. ConnectMe_lachen
  23. Further Links
  24. Selfservice: https://www.rwth-aachen.de/selfservice
  25. IdM: https://www.itc.rwth-aachen.de/go/id/esss
  26. Dokumentationsportal: https://doc.itc.rwth-aachen.de/display/IDM/Anleitungen
  27. Services: https://www.itc.rwth-aachen.de/go/id/eqsz?lidx=1
Advertisement
Add Comment
Please, Sign In to add comment