Exemple #1
0
        public static string GetDropBoxDirectlink(ref GlobussDropboxLib.Authentication.oAuthToken _oAuthToken, string AccessToken, string path)
        {
            //    var uri = new Uri(new Uri(GlobussDropboxLib.App.Core.Global._BASIC_URI),
            //String.Format("metadata/{0}/{1}", "dropbox", "MyFolder"));
            var uri = new Uri(new Uri(GlobussDropboxLib.App.Core.Global._BASIC_URI), String.Format("media/auto/{0}", path));

            return(_oAuthToken.APIWebRequest(GlobussDropboxLib.Authentication.oAuthToken.Method.GET.ToString(), uri + "?access_token=" + AccessToken, null));
        }
Exemple #2
0
 public static string GetUserInfo(ref GlobussDropboxLib.Authentication.oAuthToken _oAuthToken, string AccessToken)
 {
     return(_oAuthToken.APIWebRequest(GlobussDropboxLib.Authentication.oAuthToken.Method.GET.ToString(), GlobussDropboxLib.App.Core.Global._USER_INFO + "?access_token=" + AccessToken, null));
 }
        public static string GetDropBoxFolder(ref GlobussDropboxLib.Authentication.oAuthToken _oAuthToken, string AccessToken)
        {
            var uri = new Uri(new Uri(GlobussDropboxLib.App.Core.Global._BASIC_URI), String.Format("metadata/{0}/{1}", "dropbox", string.Empty));

            return(_oAuthToken.APIWebRequest(GlobussDropboxLib.Authentication.oAuthToken.Method.GET.ToString(), uri + "?access_token=" + AccessToken, null));
        }