Created
January 27, 2012 13:01
-
-
Save Riduidel/1688667 to your computer and use it in GitHub Desktop.
Definition of a target proxied interface for accesss to http apis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Attempt to define an API to access http://posterous.com/api | |
| */ | |
| @Host("posterous.com") | |
| public interface PosterousApi extends BasicAuthenticatedSite { | |
| /** | |
| * Get sites of logged in user | |
| */ | |
| @Path("/api/2/sites") | |
| public Collection<PosterousSite> getSites(String api_token); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment