mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
* gifs service * Commit from GitHub Actions (Publish APIs & Clients) Co-authored-by: domwong <domwong@users.noreply.github.com>
18 lines
300 B
Go
Executable File
18 lines
300 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/micro/services/clients/go/gifs"
|
|
"os"
|
|
)
|
|
|
|
// Search for a gif
|
|
func Search() {
|
|
gifsService := gifs.NewGifsService(os.Getenv("MICRO_API_TOKEN"))
|
|
rsp, err := gifsService.Search(&gifs.SearchRequest{
|
|
Limit: 2,
|
|
Query: "dogs",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|