Skip to content

Commit ebe6769

Browse files
committed
update readme
1 parent e1939ac commit ebe6769

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

README.md

+5-23
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
<br>
1414

15-
A small simple wrapper around the [Mystb.in](https://mystb.in/) API. API docs can be found [here](https://api.mystb.in/docs).
15+
A small simple wrapper around the [Mystb.in](https://mystb.in/) API. API docs can be found [here](https://mystb.in/api/documentation).
1616

1717
Documentation for this wrapper can be found [here](https://mystbinpy.readthedocs.io/en/stable/).
1818
If you want the docs for the `main` branch, those can be found [here](https://mystbinpy.readthedocs.io/en/latest/).
@@ -21,12 +21,8 @@ If you want the docs for the `main` branch, those can be found [here](https://my
2121
### Features
2222

2323
- [x] - Creating pastes.
24-
- [ ] Supporting attachments.
25-
- [ ] - Editing pastes.
26-
- Pending design work.
2724
- [x] - Deleting pastes.
2825
- [x] - Getting pastes.
29-
- [ ] - User endpoints.
3026
- [ ] - Sync client.
3127
- This one will take some time as I have no motivation to do it, but PRs are welcome if others want to do it.
3228

@@ -51,8 +47,10 @@ import mystbin
5147

5248
client = mystbin.Client()
5349

54-
paste = await client.create_paste(filename="Hello.txt", content="Hello there!")
55-
# we also support passing a mystbin.File directly to the `file=` kwarg!
50+
file = mystbin.File(filename="File1.txt", content="Hello there!")
51+
file2 = mystbin.File(filename="test.py", content="print('hello!')")
52+
53+
paste = await client.create_paste(files=[file, file2])
5654

5755
str(paste)
5856
>>> 'https://mystb.in/<your generated ID>'
@@ -65,22 +63,6 @@ get_paste.created_at
6563
>>> datetime.datetime(2020, 10, 6, 10, 53, 57, 556741)
6664
```
6765

68-
Or if you want to create a paste with multiple files...
69-
```py
70-
import mystbin
71-
72-
file = mystbin.File(filename="File1.txt", content="Hello there!")
73-
file2 = mystbin.File(filename="test.py", content="print('hello!')")
74-
75-
paste = await client.create_paste(files=[file, file2])
76-
77-
for file in paste.files:
78-
print(file.content)
79-
80-
>>> "Hello there!"
81-
>>> "print('hello!')"
82-
```
83-
8466
If you have any question please feel free to join the Pythonista Discord server:
8567
<div align="left">
8668
<a href="https://discord.gg/RAKc3HF">

0 commit comments

Comments
 (0)