<reponame>akaeme/TeamUp
import requests

#createUser
'''
r = requests.post('http://127.0.0.1:5014/chatManager/v1.0/createUser', json={'username': 1112, 'password': '<PASSWORD>'})
print(r.json())'''

#crateGroup
'''
r = requests.post('http://127.0.0.1:5014/chatManager/v1.0/createAndConfigureChatRoom', json={'chat_room_jid': '<EMAIL>', 'room_name': 'TeamUp', 'room_desc': 'My room description', 'logging':1, 'invite':1, 'allow_pm':'anyone', 'max_users': 50, 'public_room': 1, 'persistent_room': 1,'moderated_room': 0, 'members_only': 0, 'disc_JID':'moderators'})
print(r.json())'''

#sendInvite
'''
r = requests.post('http://127.0.0.1:5014/chatManager/v1.0/sendInvite', json={'user_jid': '<EMAIL>/Ruis-MacBook-Pro','chat_room_jid': '<EMAIL>'})
print(r.json())
'''

#sendGroupChatMessage
'''
r = requests.post('http://127.0.0.1:5014/chatManager/v1.0/sendMessage', json={'chat_room_jid': '<EMAIL>', 'message':'heeey'})
print(r.json())'''


#removeGroup
'''
r = requests.delete('http://127.0.0.1:5014/chatManager/v1.0/', params={'chat_room_jid': '<EMAIL>'})
print(r.json())'''

#addMember
'''
r = requests.post('http://1192.168.127.12:5014/chatManager/v1.0/addMember', json={'chat_room_jid': '<EMAIL>', 'user_jid':'<EMAIL>'})
print(r.json())
'''

#leaveChatRoom
'''
r = requests.post('http://127.0.0.1:5014/chatManager/v1.0/removeMember', json={'chat_room_jid': '<EMAIL>', 'nick':'rui', 'role':'none'})
print(r.json())'''


#setAffiliation
'''
r = requests.post('http://127.0.0.1:5014/chatManager/v1.0/setAffiliation', json={'chat_room_jid': '<EMAIL>', 'user_jid':'<EMAIL>/mynick', 'affiliation':'outcast', 'access_token':'<PASSWORD>'})
print(r.json())'''








