/// <summary> /// Connect Waveface to Dropbox /// </summary> /// <param name="quota"></param> /// <exception cref="Wammer.Station.Management.DropboxNoSyncFolderException"> /// Dropbox sync folder does not exist /// </exception> /// <exception cref="Wammer.Station.Management.WrongAccountException"> /// Link to inconsistent Dropbox account /// </exception> /// <exception cref="Wammer.Station.Management.DropboxNotInstalledException"> /// Dropbox is not installed /// </exception> public static void ConnectDropbox(long quota) { try { if (!DropboxHelper.IsInstalled()) { throw new DropboxNotInstalledException("Dropbox is not installed"); } string folder = DropboxHelper.GetSyncFolder(); CloudResponse res = CloudServer.request <CloudResponse>( new WebClient(), StationMgmtURL + "cloudstorage/dropbox/connect", new Dictionary <object, object> { { "quota", quota }, { "folder", folder } }, true ); } catch (Cloud.WammerCloudException e) { ExtractApiRetMsg(e); throw; } }