UPDATE: Since this API was fully based on the Picasa API and that API has been depreated, Therefore this API is being deprecated too unless we found a workaround to this.
This API is being deprecated and will be turned down in January 2019. Migrate to Google Photos Library API as soon as possible to avoid disruptions to your application.
Info Here
================================================================================
This is a pretty basic rest api written with Ktor that uses the Pikmail library for mapping gmail addresses to google profile pictures.
You can read this blog post to know how Pikmail Api works intenally.
This api is hosted on heroku as https://pikmail.herokuapp.com/
and it just exposes one endpoint.
-
Change
{gmail}
with the desired Gmail address. -
Parameter Description gmail The Gmail address of the profile to retrieve -
Parameter Required Default Description size NO If set, it defines the size of the profile picture, default google's size if omitted. -
Status
302
, the request will be redirected to the google profile picture url with the specified size. -
The Pikmail API uses the following error codes:
Error Code Meaning 302 Found -- The request will be redirected to the google profile picture url with the specified size if set. 404 Not Found -- The specified Gmail account could not be found. 500 Internal Server Error -- We had a problem with our server. Try again later. 503 Service Unavailable -- We're temporarily offline for maintenance. Please try again later.
curl -X GET 'https://pikmail.herokuapp.com/[email protected]?size=100' --verbose
<img src="https://pikmail.herokuapp.com/[email protected]?size=100" alt="Profile Picture">
Picasso.with(context).load("https://pikmail.herokuapp.com/[email protected]?size=100").into(imageView);