Created
May 22, 2013 11:02
-
-
Save guiocavalcanti/5626776 to your computer and use it in GitHub Desktop.
This file contains 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
import java.util.Scanner; | |
import wrapper.Management; | |
public class main { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
Management management = new Management("xxx", "xxx"); | |
Scanner in = new Scanner(System.in); | |
System.out.println("URL: "+management.getAuthorizeUrl()); | |
System.out.println("PIN:"); | |
String pin = in.nextLine(); | |
management.initClient(pin); | |
System.out.println(management.getMe()); | |
} | |
} |
This file contains 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
Exception in thread "main" java.lang.Error: Unresolved compilation problem: | |
This method must return a result of type String | |
at http.ImplementedHttpClient.get(ImplementedHttpClient.java:76) | |
at wrapper.Management.getUrl(Management.java:73) | |
at wrapper.Management.getMe(Management.java:119) | |
at main.main(main.java:19) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment