Created
March 8, 2013 03:44
-
-
Save secondarykey/5114069 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
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