コード例 #1
0
        private static IRestRequest NewAccessTokenRequest()
        {
            var request = RestRequest("auth/login", Method.POST);

            request.AlwaysMultipartFormData = true;
            request.AddHeader(AuthInstanceIdString, BacktoryConfig.BacktoryAuthInstanceId);
            request.AddHeader(AuthClientKeyString, BacktoryConfig.BacktoryAuthClientKey);
            request.AddHeader("X-Backtory-Authentication-Refresh", "1");
            request.AddParameter("refresh_token", BacktoryUser.GetRefreshToken(), ParameterType.GetOrPost);
            return(request);
        }