public static function updateFileListFromCloud($user_id = false)
 {
     if ($user_id and $user = User::findByAttributes(['id' => $user_id])) {
         Yii::$app->user->model = $user;
     }
     $onedrive = new OnedriveHelper();
     $onedrive->getFiles();
     $dropbox = new DropboxHelper();
     $dropbox->getFiles();
     return self::getFileListFromDb();
 }
 public function actionAuth($code)
 {
     if ($code) {
         $onedrive = OnedriveHelper::authUserByCode($code);
     }
     $this->redirect('/onedrive');
 }