[Sync] Article post creation updated. Kazimir updated: video is not part of markdown

This commit is contained in:
Roman Timashev committed 2017-10-13 17:33:27 +03:00
1 parent 52a80d6496
commit 8627db4ccd
5 files changed
+81 -109

No files matched your search

+6
View File
@@ -34,6 +34,12 @@ async def get(url):
return await res.text()
async def post(url, data, params={}):
async with aiohttp.ClientSession() as session:
async with session.post(url, data=data, params=params) as resp:
return await resp.text()
async def put(url, data):
async with aiohttp.ClientSession as session:
res = session.put(url, data=data)