コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            IAuthorizationState authorization = client.ProcessUserAuthorization();

            if (authorization == null)
            {
                client.RequestUserAuthorization(new Scope[] { Scope.BALANCE });
            }
            else
            {
                var balance = client.AccountBalance(authorization.AccessToken);
                this.nameLabel.Text = HttpUtility.HtmlEncode(balance);
            }
        }