Beispiel #1
0
        public void Can_Get_AccountInfo()
        {
            //
            // TODO: Add test logic here
            //
            _client.Login(TestVariables.Email, TestVariables.Password);
            var accountInfo = _client.Account_Info();

            Assert.IsNotNull(accountInfo);
            Assert.IsNotNull(accountInfo.display_name);
            Assert.IsNotNull(accountInfo.uid);
        }
Beispiel #2
0
        public void Can_Get_AccountInfo()
        {
            _client.UserLogin = new Models.UserLogin {
                Token = TestVariables.Token, Secret = TestVariables.Secret
            };

            var accountInfo = _client.Account_Info();

            Assert.IsNotNull(accountInfo);
            Assert.IsNotNull(accountInfo.display_name);
            Assert.IsNotNull(accountInfo.uid);
        }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Params["dropboxcallback"] == "1")
            {
                //Its a callback from dropbox!
                if (Session["DropNetUserLogin"] != null)
                {
                    _client.UserLogin           = Session["DropNetUserLogin"] as DropNet.Models.UserLogin;
                    Session["DropNetUserLogin"] = _client.GetAccessToken();

                    var accountinfo = _client.Account_Info();
                    litOutput.Text = accountinfo.quota_info.quota.ToString();
                }
                else
                {
                    litOutput.Text = "Session expired...";
                }
            }
        }