8000 GitHub - paddycarey/gophy: A Golang wrapper for the Giphy API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

paddycarey/gophy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gophy

Build Status GoDoc

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.

TODO

  • Random endpoints
  • Full documentation

Example

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 & License

About

A Golang wrapper for the Giphy API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0