项目作者: charlyx

项目描述 :
👤 Wanna get a social media avatar? Avatars-io makes it easy for you. Just give a username then get an avatar!
高级语言: Go
项目地址: git://github.com/charlyx/avatars-io.git
创建时间: 2020-06-22T14:07:10Z
项目社区:https://github.com/charlyx/avatars-io

开源协议:Apache License 2.0

下载


avatars-io

Go

Wanna get a social media avatar? Avatars.io makes it easy for you. Just give a username then get an avatar!

Getting started

Twitter :bird:

Give a username and get an avatar in return: https://avatars.chguerin.fr/twitter?username=charlyx

You can ask for variant sizings such as “bigger”, “mini” and “original” (default size being “normal”).

Example: https://avatars.chguerin.fr/twitter?username=charlyx&size=bigger

Gravatar :bust_in_silhouette:

Give an email and get an avatar in return: https://avatars.charlyx.dev/gravatar?email=mon@email

By default, images are presented at 80px by 80px if no size parameter is supplied.
You may request a specific image size from 1px up to 2048px by using the s= or size= parameter and passing a single pixel dimension (since the images are square).

Example: https://avatars.chguerin.fr/gravatar?email=mon@email&s=200