Back to project page hello-pinnedcerts.
The source code is released under:
Copyright (c) 2014 Ivan Ku?t Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwar...
If you think the Android project hello-pinnedcerts listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package co.infinum.https.retrofit; /* w w w . jav a 2 s. c om*/ import retrofit.Callback; import retrofit.http.GET; import retrofit.http.Header; import retrofit.http.Headers; import retrofit.http.Path; /** * API interface for Retrofit. */ public interface GitHubService { /** * Fetches public information about a user. * * @param user Github username * @param callback callback to notify the results as User object */ @GET("/users/{user}") @Headers("User-Agent: hello-pinnedcerts") void getUser( @Path("user") String user, @Header("Authorization") String authorizationHeader, Callback<User> callback ); }