Files
m3o-go/examples/gifs
2022-01-12 15:03:53 +00:00
..
2021-12-09 15:06:12 +00:00
2022-01-12 15:03:53 +00:00

Gifs

An m3o.com API. For example usage see m3o.com/gifs/api.

Endpoints:

Search for a GIF

https://m3o.com/gifs/api#Search

package example

import(
	"fmt"
	"os"

	"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)
	
}