io.userinfo.client.UserInfoService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of userinfo-java Show documentation
Show all versions of userinfo-java Show documentation
Java API wrapper for userinfo.io
The newest version!
package io.userinfo.client;
import io.userinfo.client.model.Info;
import retrofit.http.GET;
import retrofit.http.Headers;
import retrofit.http.Query;
/**
* Interface used by retrofit to performs requests against the userinfo.io API.
*
* @author Vincent DURMONT [[email protected]]
*/
public interface UserInfoService {
@GET("/userinfos")
@Headers("X-Userinfo-Client-Id:" + UserInfo.CLIENT_VERSION_ID)
Info getInfos(@Query(value = "ip_address") String ipAddress);
}