Created
February 2, 2015 19:59
-
-
Save fnk0/f3ef3d5d15d72bff3fb2 to your computer and use it in GitHub Desktop.
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
| public interface GithubAuth { | |
| @POST("/authorizations") | |
| UserToken getUserToken( | |
| @Body LoginRequest body | |
| ); | |
| } |
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
| 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