public static void DeleteDropboxToken() { Debug.WriteLine(@"Deleting dropbox key/token"); var saver = new PrefSaver(); var prefs = saver.LoadPrefs(); prefs.UserSecret = null; prefs.UserToken = null; saver.SavePrefs(prefs); Debug.WriteLine(@"Dropbox key/token deleted"); }
public bool SaveDropboxToken(UserLogin userLogin) { if (!CheckForPrefs()) //true if no prefs exist return CreateDropboxOnlyPrefs(userLogin); var saver = new PrefSaver(); var prefs = saver.LoadPrefs(); prefs.UserSecret = userLogin.Secret; prefs.UserToken = userLogin.Token; saver.SavePrefs(prefs); return true; }