Source:
<code>public static void main(String[] args) { <START> Scanner in = new Scanner(System.in); <END> OAuthService service = new ServiceBuilder() .provider(VimeoApi.class) .apiKey(APIKEY) .apiSecret(API_SECRET) .callback(CALLBACK) .signatureType(SignatureType.QueryString) .build(); System.out.println("Fetching the Request Token..."); Token requestToken = service.getRequestToken(); System.out.println("Got the Request Token!"); String authUrl = String.format(AUTHORIZE_URL, requestToken.getToken(), CALLBACK); System.out.println("Now go and authorize Scribe here:"); System.out.println(authUrl); System.out.println("And paste the verifier here"); System.out.print(">>"); Verifier verifier = new Verifier(in.nextLine()); System.out.println(); System.out.println("Trading the Request Token for an Access Token..."); Token accessToken = service.getAccessToken(requestToken, verifier); System.out.println("Got the Access Token!"); System.out.println("(if your curious it looks like this: " + accessToken + " )"); System.out.println("Now we're going to access a protected resource..."); String protectedResourceURL = String.format(VIMEO_BASE, VIMEO_METHOD); OAuthRequest orequest = new OAuthRequest(Verb.GET, protectedResourceURL); service.signRequest(accessToken, orequest); Response oresponse = orequest.send(); System.out.println("Got it! Lets see what we found..."); System.out.println(oresponse.getCode()); System.out.println(oresponse.getBody()); System.out.println(); System.out.println("Thats it man! Go and build something awesome with Scribe! :)"); }</code><technical_language>indentation is fucked</technical_language>

Target:
public static void main(String[] args) { OAuthService service = new ServiceBuilder() .provider(VimeoApi.class) .apiKey(APIKEY) .apiSecret(API_SECRET) .signatureType(SignatureType.QueryString) .build(); Scanner in = new Scanner(System.in); System.out.println("=== " + NETWORK_NAME + "'s OAuth Workflow ==="); System.out.println(); System.out.println("Fetching the Request Token..."); Token requestToken = service.getRequestToken(); System.out.println("Got the Request Token!"); String authorizationUrl = service.getAuthorizationUrl(requestToken); System.out.println("Now go and authorize Scribe here:"); System.out.println(authorizationUrl); System.out.println("And paste the verifier here"); System.out.print(">>"); Verifier verifier = new Verifier(in.nextLine()); System.out.println(); System.out.println("Trading the Request Token for an Access Token..."); Token accessToken = service.getAccessToken(requestToken, verifier); System.out.println("Got the Access Token!"); System.out.println("(if your curious it looks like this: " + accessToken + " )"); System.out.println("Now we're going to access a protected resource..."); String protectedResourceURL = String.format(VIMEO_BASE, VIMEO_METHOD); OAuthRequest orequest = new OAuthRequest(Verb.GET, protectedResourceURL); service.signRequest(accessToken, orequest); Response oresponse = orequest.send(); System.out.println("Got it! Lets see what we found..."); System.out.println(oresponse.getCode()); System.out.println(oresponse.getBody()); System.out.println(); System.out.println("Thats it man! Go and build something awesome with Scribe! :)"); }