Skip to content

Commit 330adc9

Browse files
committed
fix quotes
1 parent 9c2847a commit 330adc9

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ proxy_py has server based on aiohttp which is listening 127.0.0.1:55555(you can
3535

3636
```json
3737
{
38-
'model': 'proxy',
39-
'method': 'get',
40-
'order_by': 'response_time, uptime'
38+
"model": "proxy",
39+
"method": "get",
40+
"order_by": "response_time, uptime"
4141
}
4242
```
4343

@@ -48,10 +48,10 @@ It will return json response like this:
4848

4949
```json
5050
{
51-
'status': 'ok',
52-
'count': 1,
53-
'has_more': True,
54-
'data': [{
51+
"status": "ok",
52+
"count": 1,
53+
"has_more": True,
54+
"data": [{
5555
"address": "http://127.0.0.1:8080",
5656
"auth_data": null,
5757
"bad_proxy": false,
@@ -72,8 +72,8 @@ Or error if something went wrong:
7272

7373
```json
7474
{
75-
'status': 'error',
76-
'error_message': 'You should specify model',
75+
"status": "error",
76+
"error_message": "You should specify model",
7777
}
7878
```
7979

@@ -95,8 +95,8 @@ import json
9595
def get_proxies():
9696
result = []
9797
json_data = {
98-
'model': 'proxy',
99-
'method': 'get',
98+
"model": "proxy",
99+
"method": "get",
100100
}
101101

102102
response = json.loads(requests.post('http://example.com:55555', json=json_data).text)
@@ -115,8 +115,8 @@ import aiohttp
115115
async def get_proxies():
116116
result = []
117117
json_data = {
118-
'model': 'proxy',
119-
'method': 'get',
118+
"model": "proxy",
119+
"method": "get",
120120
}
121121

122122
with aiohttp.ClientSession() as session:

0 commit comments

Comments
 (0)