Skip to content

Commit

Permalink
Deprecate fetch_single (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Life committed Jul 16, 2023
1 parent 5b52f05 commit 1762914
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/examples/unofficial/c++.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ int main() {
#### Downloading:

```cpp
const std::string search_result = "https://nekos.best/api/v2/neko/c841bace-142f-41ee-a042-666b1bb4554a.png";

std::ostringstream download_stream;
// get random stuff
nekos_best::Meta meta = nekos_best::fetch_single("", "", nekos_best::if_none, &download_stream);
// download search result
nekos_best::Meta meta = nekos_best::download(search_result, &download_stream);

std::ofstream file;

Expand Down

0 comments on commit 1762914

Please sign in to comment.