Skip to content

Instantly share code, notes, and snippets.

@fnk0
Created February 2, 2015 19:59
Show Gist options
  • Select an option

  • Save fnk0/f3ef3d5d15d72bff3fb2 to your computer and use it in GitHub Desktop.

Select an option

Save fnk0/f3ef3d5d15d72bff3fb2 to your computer and use it in GitHub Desktop.
public interface GithubAuth {
@POST("/authorizations")
UserToken getUserToken(
@Body LoginRequest body
);
}
public class LoginRequest {
final String client_id = "{some numnber here with my client id}";
final String client_secret = "{my client secret}";
String[] scopes = {"user","repo","gist","notifications","repo:status"};
final String note = "App Name";
public LoginRequest() {
}
public String getClient_id() {
return client_id;
}
public String getClient_secret() {
return client_secret;
}
public String[] getScopes() {
return scopes;
}
public String getNote() {
return note;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment