We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99c0206 commit e5c5b9fCopy full SHA for e5c5b9f
README.md
@@ -38,6 +38,23 @@ TODO: add a sample Python chat program
38
- User search
39
- Channel search
40
41
+### Quickstart
42
+
43
+```python
44
+chat = StreamChat(api_key="STREAM_KEY", api_secret="STREAM_SECRET")
45
46
+# add a user
47
+chat.update_user({"id": "chuck", "name": "Chuck"})
48
49
+# create a channel about kung-fu
50
+channel = chat.channel("messaging", "kung-fu")
51
+channel.create("chuck")
52
53
+# add a first message to the channel
54
+channel.send_message({"text": "AMA about kung-fu"})
55
56
+```
57
58
### Contributing
59
60
First, make sure you can run the test suite. Tests are run via py.test
0 commit comments