Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tasadurian/go-avatar
Go wrapper for the avatar api.
https://github.com/tasadurian/go-avatar
avatar-api go
Last synced: 7 days ago
JSON representation
Go wrapper for the avatar api.
- Host: GitHub
- URL: https://github.com/tasadurian/go-avatar
- Owner: tasadurian
- License: mit
- Created: 2016-10-06T01:58:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-27T03:26:48.000Z (about 8 years ago)
- Last Synced: 2024-11-07T06:49:06.042Z (about 2 months ago)
- Topics: avatar-api, go
- Language: Go
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-avatar [![Go Report Card](https://goreportcard.com/badge/github.com/TheTommyTwitch/go-avatar)](https://goreportcard.com/report/github.com/TheTommyTwitch/go-avatar)
Go wrapper for the [avatar api](http://www.avatarapi.com/).## Usage
```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
}
```