[Sync] Article post creation updated. Kazimir updated: video is not part of markdown
This commit is contained in:
1 parent
52a80d6496
commit
8627db4ccd
5 files changed
+81
-109
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user