Skip to content

Instantly share code, notes, and snippets.

@rhari991
Created February 7, 2018 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhari991/67afd7d850e58e806b39386aa13b0f16 to your computer and use it in GitHub Desktop.
Save rhari991/67afd7d850e58e806b39386aa13b0f16 to your computer and use it in GitHub Desktop.
An example of calling a Retrofit interface
NewPasteParameters parameters = new NewPasteParameters.Builder("Random Text")
.title("Random title")
.visibility(Visibility.PUBLIC)
.build();
Call<ReturnType> call = apiService.createNewPaste(parameters);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment