コード例 #1
0
        public APIGatewayProxyResponse Download(APIGatewayProxyRequest request, ILambdaContext context)
        {
            // Log entries show up in CloudWatch
            Console.WriteLine("Another example\n");
            Console.WriteLine(JsonConvert.SerializeObject(request.Body));
            string content  = FtpUtil.Download();
            var    response = new APIGatewayProxyResponse
            {
                StatusCode = (int)HttpStatusCode.OK,
                Body       = content,
                Headers    = new Dictionary <string, string> {
                    { "Content-Type", "application/json" }
                }
            };

            return(response);
        }
コード例 #2
0
        public static void Main()
        {
            string content = FtpUtil.Download();

            Console.WriteLine(content);
        }