private void SetTicket() { IRestRequest request = _requestHelper.GetTicket(ApiKey); var boxTicket = _restClient.ExecuteAndDeserialize <BoxTicket>(request); Ticket = boxTicket.Ticket; }
public OAuthToken GetAccessToken(string authorizationCode, string redirectUri = null) { IRestRequest request = _requestHelper.GetAccessToken(_clientId, _clientSecret, authorizationCode, redirectUri); return(_restClient.ExecuteAndDeserialize <OAuthToken>(request)); }