public void SignOut()
        {
            SetVimeoToken(null);
            vimeoVideos.Clear();
            vimeoFolders.Clear();

            currentVideo      = null;
            currentFolder     = null;
            currentFolderType = VimeoFolder.Collection.Undefined;
            vimeoSignIn       = false;
            signInError       = false;
        }
Example #2
0
        protected bool GUISelectFolderType()
        {
            var settings = target as VimeoSettings;

            VimeoFolder.Collection cur_colType = settings.GetCurrentFolderType();
            VimeoFolder.Collection new_colType = (VimeoFolder.Collection)EditorGUILayout.EnumPopup("Folder type:", cur_colType);

            if (new_colType != cur_colType)
            {
                settings.currentFolderType = new_colType;
                FetchFolders();
                return(true);
            }

            return(false);
        }
        public void GetUserFolders(VimeoFolder.Collection collectionType)
        {
            string collectionTag = VimeoFolder.CollectionTag[(int)collectionType];

            StartCoroutine("Request", "/me/" + collectionTag + "? fields=name,uri");
        }