All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.userinfo.client.UserInfoService Maven / Gradle / Ivy

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy