小编vla*_*ens的帖子

Python的RESTful客户端,如来自PHP的Guzzle

Python库提供的RESTful客户端界面如下:

client = Client(
    base_url="http://example.com/api/1/", auth=("user", "password"),
    cookie=cookielib.FileCookieJar('cookie-file'))
result = client.get('group', params={"groupname": "some_group", "expand": "users"})
result.json()
Run Code Online (Sandbox Code Playgroud)

php python rest guzzle

6
推荐指数
1
解决办法
1803
查看次数

标签 统计

guzzle ×1

php ×1

python ×1

rest ×1