daeun

hide api secret

1 var express = require('express'); 1 var express = require('express');
2 -var client_id = 'v3M4wjolGLkrvNA3GUIW'; 2 +var client_id = 'your cfr client id';//cfr api client id를 입력하세요
3 -var client_secret = 'fKF6vjkWhE'; 3 +var client_secret = 'your cfr client secret';//cfr api client secret을 입력하세요
4 const request = require('request'); 4 const request = require('request');
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 = 'w5i8sURqF5bof6DWeB87n+oCeWrYaFf7a5YZzfzN1jeITIlZ3PcOmZRcdGCo/djTuHhNxybfJ69y7Jex+7tipBNRynngfyWX9CK1L3EupuhnX8rubeCmJda7HvsQWXVo8ZDcwl2aLwXsE3kiYF2qEwdB04t89/1O/w1cDnyilFU=' //수정해주세용 6 +const TOKEN = 'your chatbot token' //line chatbot api token을 입력하세요
7 -const SECRET = 'b0b4501ebc2813a2b0e586293a35b466' //수정해주세용 7 +const SECRET = 'your chatbot secret' //line chatbot api secret을 입력하세요
8 const fs = require('fs'); 8 const fs = require('fs');
9 const path = require('path'); 9 const path = require('path');
10 const HTTPS = require('https'); 10 const HTTPS = require('https');
11 -const domain = "www.osstest237.ml" //수정해주세용 11 +const domain = "your domain" //도메인을 입력하세요
12 const sslport = 23023; 12 const sslport = 23023;
13 const line = require('@line/bot-sdk'); 13 const line = require('@line/bot-sdk');
14 14
...@@ -23,8 +23,8 @@ var imgDownloaded = false; ...@@ -23,8 +23,8 @@ var imgDownloaded = false;
23 var downloadedImg = '' 23 var downloadedImg = ''
24 24
25 //search 25 //search
26 -var search_client_id = 'cnS9zzj0OZ3xPgHqtaLJ'; 26 +var search_client_id = 'your search client id';//naver search local api client id를 입력하세요
27 -var search_client_secret = 'oQGaxdr7aq'; 27 +var search_client_secret = 'your search client secret';//naver search local api client secret 입력하세요
28 28
29 //data parsing 29 //data parsing
30 var data=''; 30 var data='';
......