免费的接口请求api
免费的接口
get请求
import requests url = "https://api.uomg.com/api/icp?domain=qrpay.uomg.com" payload = {} headers = {} response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
post请求
import requests import json url = "http://jsonplaceholder.typicode.com/posts" payload = json.dumps({ "userId": 1, "title": "云程低代码平台", "body": "私有化部署、定制化开发、源代码交付、欢迎在线体验。http://www.yunchegnxc.com" }) headers = { 'Content-Type': 'application/json' } response = requests.request("POST", url, headers=headers, data=payload) print(response.json())