mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
19 lines
284 B
Go
Executable File
19 lines
284 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/go.m3o.com/gifs"
|
|
)
|
|
|
|
// Search for a GIF
|
|
func Search() {
|
|
gifsService := gifs.NewGifsService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := gifsService.Search(&gifs.SearchRequest{
|
|
Limit: 2,
|
|
Query: "dogs",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|