def create_room(room_name, token):
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
headers = {'Authorization':'Bearer '+token,
'Content-Type':'application/json'}
body = json.dumps({'title':room_name})
resp = requests.post('https://api.ciscospark.com/v1/rooms',
verify=False,headers=headers,data=body)
print resp
评论列表
文章目录