Skip to content

Instantly share code, notes, and snippets.

@secondarykey
Created March 8, 2013 03:44
Show Gist options
  • Save secondarykey/5114069 to your computer and use it in GitHub Desktop.
Save secondarykey/5114069 to your computer and use it in GitHub Desktop.
URL url = new URL("https://api.dropbox.com/1/oauth/request_token");
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setDoInput(true);
connection.addRequestProperty("Authorization", buildOAuthHeader(false));
connection.setRequestMethod("GET");
InputStream inStream = connection.getInputStream();
BufferedReader input = new BufferedReader(new InputStreamReader(inStream));
String line = input.readLine();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment