Go wrapper for the avatar api.
go get github.com/TheTommyTwitch/go-avatar
func main() {
c := new(Client)
c.Username = "username"
c.Password = "password"
response, err := c.GetResponse("[email protected]")
if err != nil {
panic(err)
}
fmt.Printf("%+v", response)
}
Return structure:
type Profile struct {
Name string // name
Image string // url to profile image
Valid string // valid: true or false
}