{"action":"created","issue":{"url":"https://api.github.com/repos/Fahreeve/aiovk/issues/9","repository_url":"https://api.github.com/repos/Fahreeve/aiovk","labels_url":"https://api.github.com/repos/Fahreeve/aiovk/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Fahreeve/aiovk/issues/9/comments","events_url":"https://api.github.com/repos/Fahreeve/aiovk/issues/9/events","html_url":"https://github.com/Fahreeve/aiovk/issues/9","id":183374431,"number":9,"title":"Unclosed client session.","user":{"login":"nxbx","id":20150021,"avatar_url":"https://avatars.githubusercontent.com/u/20150021?v=3","gravatar_id":"","url":"https://api.github.com/users/nxbx","html_url":"https://github.com/nxbx","followers_url":"https://api.github.com/users/nxbx/followers","following_url":"https://api.github.com/users/nxbx/following{/other_user}","gists_url":"https://api.github.com/users/nxbx/gists{/gist_id}","starred_url":"https://api.github.com/users/nxbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nxbx/subscriptions","organizations_url":"https://api.github.com/users/nxbx/orgs","repos_url":"https://api.github.com/users/nxbx/repos","events_url":"https://api.github.com/users/nxbx/events{/privacy}","received_events_url":"https://api.github.com/users/nxbx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-17T10:01:51Z","updated_at":"2016-10-17T15:01:54Z","closed_at":null,"body":"После каждого запроса получаю:\r\n```\r\nUnclosed client session\r\nclient_session: <aiohttp.client.ClientSession object at 0x7f705e376390>\r\n```\r\nКак можно закрыть aiohttp сессию?"},"comment":{"url":"https://api.github.com/repos/Fahreeve/aiovk/issues/comments/254233389","html_url":"https://github.com/Fahreeve/aiovk/issues/9#issuecomment-254233389","issue_url":"https://api.github.com/repos/Fahreeve/aiovk/issues/9","id":254233389,"user":{"login":"Fahreeve","id":3227524,"avatar_url":"https://avatars.githubusercontent.com/u/3227524?v=3","gravatar_id":"","url":"https://api.github.com/users/Fahreeve","html_url":"https://github.com/Fahreeve","followers_url":"https://api.github.com/users/Fahreeve/followers","following_url":"https://api.github.com/users/Fahreeve/following{/other_user}","gists_url":"https://api.github.com/users/Fahreeve/gists{/gist_id}","starred_url":"https://api.github.com/users/Fahreeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fahreeve/subscriptions","organizations_url":"https://api.github.com/users/Fahreeve/orgs","repos_url":"https://api.github.com/users/Fahreeve/repos","events_url":"https://api.github.com/users/Fahreeve/events{/privacy}","received_events_url":"https://api.github.com/users/Fahreeve/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T15:01:54Z","updated_at":"2016-10-17T15:01:54Z","body":"вот пример использования, не забывай вызывать метод close у сессии\r\n```python\r\nimport asyncio\r\n\r\nfrom aiovk import API\r\nfrom aiovk import ImplicitSession\r\nfrom aiovk.drivers import HttpDriver\r\nfrom aiovk.mixins import LimitRateDriverMixin\r\nfrom tests.auth_data import USER_LOGIN, USER_PASSWORD, APP_ID\r\n\r\n\r\nclass ExampleDriver(LimitRateDriverMixin, HttpDriver):\r\n    requests_per_period = 3\r\n    period = 1  #seconds\r\n\r\nasync def test():\r\n    session = ImplicitSession(USER_LOGIN, USER_PASSWORD, APP_ID, driver=ExampleDriver())\r\n    api = API(session)\r\n    a = await api.users.get(user_ids=1)\r\n    session.close()\r\n    return a\r\n\r\nloop = asyncio.get_event_loop()\r\nloop.run_until_complete(test())\r\n```"}}
{"actor":{"display_login":"Fahreeve"}}