-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* gitignore dropbox credentials * add base Dropbox class * add empty files for directory structure
- Loading branch information
Showing
6 changed files
with
69 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# IntelliJ | ||
.idea/ | ||
*.iml | ||
out/ | ||
out/ | ||
|
||
# nope not having it | ||
/src/main/webapp/dropbox.json |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package main.webapp; | ||
|
||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
|
||
import java.io.FileNotFoundException; | ||
import java.io.FileReader; | ||
|
||
/** | ||
* Dropbox API specific | ||
*/ | ||
public class Dropbox { | ||
// retrieve private credentials from Dropbox Developers app | ||
static { | ||
try { | ||
FileReader readCred = new FileReader("dropbox.json"); | ||
JSONObject dropCred = new JSONObject(readCred); | ||
final String key = dropCred.getString("key"); | ||
final String secret = dropCred.getString("secret"); | ||
final String token = dropCred.getString("token"); | ||
|
||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
|
||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"key": "oz86s28acxaqre2", | ||
"secret": "j9u4yh94ke45as8", | ||
"token": "pxuSD7bJpSgAAAAAAAGupZnsWNjAJScyxlBm2fvBf3ir2fndkp-DT67xJIlBuArg" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package test.main; | ||
|
||
/** | ||
* A test of test methods | ||
*/ | ||
public class Test { | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
resources test goes here |