async def api_post(self, url, params):
post = None<EOL>try:<EOL><INDENT>with async_timeout.timeout(DEFAULT_TIMEOUT, loop=self._event_loop):<EOL><INDENT>post = await self._api_session.post(<EOL>url, params=params)<EOL><DEDENT>if post.status != <NUM_LIT>:<EOL><INDENT>_LOGGER.error('<STR_LIT>', post.status)<EOL>return None<EOL><DEDENT>post_result = await post.text()<EOL>return post_result<EOL><DEDENT>except (aiohttp.ClientError, asyncio.TimeoutError,<EOL>ConnectionRefusedError) as err:<EOL><INDENT>_LOGGER.error('<STR_LIT>', err)<EOL>return None<EOL><DEDENT>
Make api post request.