コード例 #1
0
        // GET: /view/tokens
        public static HttpResponse ViewAllTokens(HttpRequest request)
        {
            ViewerController controller = new ViewerController();
            var response = controller.GetAllTokens();

            return(CreateHttpResponse(response));
        }
コード例 #2
0
        private static void RunShowTokens()
        {
            ViewerController viewer = new ViewerController();
            var response            = viewer.GetAllTokens();

            if (response.Code == "1")
            {
                Console.WriteLine(JsonConvert.SerializeObject(response.Data));
            }
            else
            {
                Console.WriteLine(response.Message);
            }
        }