mirror of
https://github.com/Waradu/streamshare.git
synced 2025-04-21 11:54:09 +02:00
added download
This commit is contained in:
parent
2d635f5807
commit
156472e310
4 changed files with 69 additions and 3 deletions
11
README.md
11
README.md
|
@ -42,4 +42,15 @@ match client.delete(file_identifier, deletion_token).await {
|
|||
}
|
||||
```
|
||||
|
||||
Download:
|
||||
|
||||
```rust
|
||||
let client = StreamShare::default();
|
||||
|
||||
match client.download(file_identifier, path).await {
|
||||
Ok(_) => println!("File downloaded successfully"),
|
||||
Err(e) => eprintln!("Error downloaded file: {}", e),
|
||||
}
|
||||
```
|
||||
|
||||
Check [toss](https://github.com/Waradu/to-streamshare) for a better example on how to use it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue