Skip to content

Commit 3de08fb

Browse files
authored
Add example to README.md
1 parent 64072b8 commit 3de08fb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ vk_api [![PyPI](https://img.shields.io/pypi/v/vk_api.svg)](https://pypi.python.o
66
* [Примеры использования](./examples) (python3)
77
* [Документация по методам API](https://vk.com/dev/methods)
88

9+
```python
10+
import vk_api
11+
12+
vk_session = vk_api.VkApi('+71234567890', 'mypassword')
13+
vk_session.auth()
14+
15+
vk = vk_session.get_api()
16+
17+
print(vk.wall.post(message='Hello world!'))
18+
```
19+
920
Установка
1021
------------
1122
$ pip install vk_api

0 commit comments

Comments
 (0)