コード例 #1
0
        private void SetTicket()
        {
            IRestRequest request   = _requestHelper.GetTicket(ApiKey);
            var          boxTicket = _restClient.ExecuteAndDeserialize <BoxTicket>(request);

            Ticket = boxTicket.Ticket;
        }
コード例 #2
0
        public OAuthToken GetAccessToken(string authorizationCode, string redirectUri = null)
        {
            IRestRequest request = _requestHelper.GetAccessToken(_clientId, _clientSecret, authorizationCode, redirectUri);

            return(_restClient.ExecuteAndDeserialize <OAuthToken>(request));
        }