박주영

키 삭제

...@@ -3,24 +3,23 @@ const request = require('request'); ...@@ -3,24 +3,23 @@ const request = require('request');
3 const convert = require('xml-js'); 3 const convert = require('xml-js');
4 4
5 const TARGET_URL = 'https://api.line.me/v2/bot/message/reply' 5 const TARGET_URL = 'https://api.line.me/v2/bot/message/reply'
6 -const TOKEN = 'z5iy5sMU1W4xZAlwvn0/5x4U+4ZsqI0hKO1ZZNFxUGlNzGBjFg2D1u6/Ij5C/Sbkncx3hyYg7Nfz5JnMD8BG/9Z3TEEHPvy1A2XhkPKs04v0/n6TjH1A3e9X23zYdYmNSGyPn2hDGglgm2p3YmtLSwdB04t89/1O/w1cDnyilFU=' 6 +const TOKEN = 'line' // line messenger api의 channel access token으로 수정합니다.
7 7
8 var ProductCategoryName ; 8 var ProductCategoryName ;
9 var first_url = 'http://apis.data.go.kr/1470000/FoodAdtvInfoService/getFoodAdtvInfoList'; 9 var first_url = 'http://apis.data.go.kr/1470000/FoodAdtvInfoService/getFoodAdtvInfoList';
10 -var first_key ='ofY2ppOq5kBqT5jYPaGsW%2BEy7OR5a1bf5Z9PHvqNKvwO5DSCaU2x2qCj%2FoXnuB1YVbMTlErkHWSMEsR5b7isrw%3D%3D'; 10 +var first_key = '식품첨가물 정보 서비스' // 발급받은 식품첨가물 정보 서비스의 key로 수정합니다.
11 11
12 var second_url ='http://openapi.foodsafetykorea.go.kr/api'; 12 var second_url ='http://openapi.foodsafetykorea.go.kr/api';
13 -var second_key ='f8ce3271a2dc4decb83b'; 13 +var second_key = '식품품목제조보고(원재료)' // 발급받은 식품품목제조보고 key로 수정합니다.
14 var filetype ='json'; 14 var filetype ='json';
15 var startIndex = 1; 15 var startIndex = 1;
16 var endIndex = 5; 16 var endIndex = 5;
17 var simpleResult = true; 17 var simpleResult = true;
18 18
19 -
20 const fs = require('fs'); 19 const fs = require('fs');
21 const path = require('path'); 20 const path = require('path');
22 const HTTPS = require('https'); 21 const HTTPS = require('https');
23 -const domain = "www.foodbot2020.ml" 22 +const domain = 'your domain' // 당신의 도메인의 주소로 수정합니다.
24 const sslport = 23023; 23 const sslport = 23023;
25 const bodyParser = require('body-parser'); 24 const bodyParser = require('body-parser');
26 var app = express(); 25 var app = express();
......