Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created January 27, 2012 13:01
Show Gist options
  • Select an option

  • Save Riduidel/1688667 to your computer and use it in GitHub Desktop.

Select an option

Save Riduidel/1688667 to your computer and use it in GitHub Desktop.
Definition of a target proxied interface for accesss to http apis
/**
* 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