- Remove comment preventing synced notebooks from working. Oops.
- Use new API key & oauth file.
\r
public class Global {\r
// Set current version and the known versions.\r
- public static String version = "1.5";\r
- public static String[] validVersions = {"1.5", "1.4", "1.3", "1.2", "1.1", "1.0", "0.99", "0.98", "0.97", "0.96"};\r
+ public static String version = "1.6";\r
+ public static String[] validVersions = {"1.6", "1.5", "1.4", "1.3", "1.2", "1.1", "1.0", "0.99", "0.98", "0.97", "0.96"};\r
public static String username = ""; \r
//public static String password = ""; \r
\r
OAuthTokenizer tokenizer = new OAuthTokenizer();
AESEncrypter aes = new AESEncrypter();
try {
- aes.decrypt(new FileInputStream(Global.getFileManager().getHomeDirFile("oauth.txt")));
+ aes.decrypt(new FileInputStream(Global.getFileManager().getHomeDirFile("oauthkey.txt")));
} catch (FileNotFoundException e) {
// File not found, so we'll just get empty strings anyway.
}
}
aes.setString(window.response);
try {
- aes.encrypt(new FileOutputStream(Global.getFileManager().getHomeDirFile("oauth.txt")));
+ aes.encrypt(new FileOutputStream(Global.getFileManager().getHomeDirFile("oauthkey.txt")));
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
import cx.fbn.nevernote.utilities.ApplicationLogger;
public class OAuthWindow extends QDialog {
- private final static String consumerKey = "baumgarr";
- private final static String consumerSecret = "60d4cdedb074b0ac";
+ // Old consumer key
+ //private final static String consumerKey = "baumgarr";
+ //private final static String consumerSecret = "60d4cdedb074b0ac";
+
+ private final static String consumerKey = "baumgarr-3523";
+ private final static String consumerSecret = "8d5ee175f8a5d3ec";
+
public String response;
private final String temporaryCredUrl;