Guest User

Untitled

a guest
Oct 17th, 2017
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. from watson_developer_cloud import ConversationV1
  2.  
  3. url = "https://gateway-fra.watsonplatform.net/conversation/api"
  4. username = "USERNAME"
  5. password = "PASSWORD"
  6.  
  7. workspace_id = '2d5e7dd4-19fe-4ab3-9c3e-f2eff48c9ca4'
  8.  
  9. conv = ConversationV1(
  10. username=username,
  11. password=password,
  12. version='2017-05-26',
  13. url=url
  14. )
  15.  
  16. response = conv.get_workspace(workspace_id=workspace, export=False)
  17.  
  18. print('Status is: {}'.format(response['status']))
Add Comment
Please, Sign In to add comment