Skip to content

Instantly share code, notes, and snippets.

@guiocavalcanti
Created May 22, 2013 11:02
Show Gist options
  • Save guiocavalcanti/5626776 to your computer and use it in GitHub Desktop.
Save guiocavalcanti/5626776 to your computer and use it in GitHub Desktop.
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());
}
}
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