def get_profile(client_id): param ={'client_id':client_id} print "+++++++++++++++++++++++++++++in get_profile________________________________params are" print param resp = dialog_rest.get_request('profile',param) print "response is %s" %resp print resp return resp
print('---------------------') conversation_id = res['conversation_id'] client_id = res['client_id'] message="yes" param = {'client_id': client_id, 'conversation_id':conversation_id, 'input':message} res = dialog_rest.post_request('conversation',param) print(res['response']) print(res['client_id']) print(res['conversation_id']) print('---------------------') conversation_id = res['conversation_id'] client_id = res['client_id'] message="yes" param = {'client_id': client_id, 'conversation_id':conversation_id, 'input':message} res = dialog_rest.post_request('conversation',param) print(res) print(res['response']) print(res['client_id']) print(res['conversation_id']) print('---------------------') client_id = res['client_id'] param = {'client_id': client_id} res = dialog_rest.get_request('profile',param) for i in res['name_values']: print(i)