Guest User

Untitled

a guest
Jan 28th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. var assistant = new watson.AssistantV1({
  2. username: '********',
  3. password: '******',
  4. url:'https://gateway.watsonplatform.net/assistant/api/v1 /workspaces/{workspaceid} /message?version=2018-09-20',
  5. version: '2018-02-16'});
  6.  
  7. assistant.getIntent({
  8. intent: "Hello",
  9. workspace_id: '******'}, function(err, response){
  10. if(err){
  11. console.error(err);
  12. }else {
  13. console.log(JSON.stringify(response, null, 2));
  14. }
  15. });
  16.  
  17. Error: Resource not found
  18. code: 404,
  19. error: 'Resource not found',
  20. 'x-global-transaction-id': 'ffea405d5c4ef5012b3fd98b'
  21.  
  22. url:'https://gateway.watsonplatform.net/assistant/api/v1/workspaces/{workspaceid}/message?version=2018-09-20'
Add Comment
Please, Sign In to add comment