Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
        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);
        }