SHARE
TWEET

Untitled

a guest Oct 17th, 2017 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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']))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top