Skip to content

Commit 0e67f7b

Browse files
committed
Added example of usage
1 parent 18215bd commit 0e67f7b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
11
# bugout-python
22
Python client library for Bugout
3+
4+
```python
5+
from bugout.user import User
6+
from bugout.group import Group
7+
from bugout.app import Bugout
8+
9+
bugout = Bugout(url="http://localhost", port="433")
10+
bugout_user = User(bugout)
11+
bugout_group = Group(bugout)
12+
13+
def main():
14+
print(bugout_user.get_user(token="<user token>"))
15+
print(bugout_group.get_group(group_id="<group id>",token="<user token>"))
16+
17+
if __name__ == "__main__":
18+
main()
19+
20+
```

0 commit comments

Comments
 (0)