gophy is a Golang wrapper for the Giphy.com API. gophy is a WIP but aims to eventually have 100% coverage of the API. Gophy requires Go >= 1.1.
See GoDoc for full library documentation.
- Random endpoints
- Full documentation
Using gophy should be simple, just import it into your project, create a client and call the appropriate method. A contrived example is shown below:
package main
import (
"fmt"
"github.com/paddycarey/gophy"
)
def main() {
co := &gophy.ClientOptions{}
client := gophy.NewClient(co)
gifs, err := gophy.TrendingGifs("", 20)
if err != nil {
panic(err)
}
for _, gif := range gifs {
fmt.Printf("%s: %s", gif.Id, gif.URL)
}
}
- Copyright © 2015 Patrick Carey (https://github.com/paddycarey)
- Licensed under the MIT license.