mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-18 13:45:09 +00:00
Gifs API (#223)
* gifs service * Commit from GitHub Actions (Publish APIs & Clients) Co-authored-by: domwong <domwong@users.noreply.github.com>
This commit is contained in:
13
examples/gifs/search/node/search.js
Executable file
13
examples/gifs/search/node/search.js
Executable file
@@ -0,0 +1,13 @@
|
||||
import * as gifs from "m3o/gifs";
|
||||
|
||||
// Search for a gif
|
||||
async function Search() {
|
||||
let gifsService = new gifs.GifsService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await gifsService.search({
|
||||
limit: 2,
|
||||
query: "dogs",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await Search();
|
||||
Reference in New Issue
Block a user