post
import requests
postdata={'name':'xiaochong'}
r=requests.post('http://xxxxxx(替换成您的网址)',data=postdata)
print(r.text)
GET
import requests
params={'appkey':'ding2jf8ixj9vm9zar4b','appsecret':'ZX6KIqFnv0A6q6CYq2iUqdl8ywmmwpT6bG5-LYC4bjKxA3EJTWe9C-7qMOSMjhZn'}
r=requests.get('https://oapi.dingtalk.com/gettoken?',params=params)
print(r.text)
wwwwwwwwwww
import requests
url = "http://test/api/auth/me?token=xxx"
res = requests.get(url)
print(res.text)
wwwwwwwwwwwwwwwww
import requests
url = "http://test/api/auth/me"
params = {"token":"xxxx"}
res = requests.get(url=url,params=params)
print(res.text)