Ubuntu

Hide api-key and test

1 node_modules/ 1 node_modules/
2 +apiKey.json
3 +tes*.js
...\ No newline at end of file ...\ No newline at end of file
......
1 var express = require('express'); 1 var express = require('express');
2 +const lineToken = require('./apiKey.json');
2 const request = require('request');const TARGET_URL = 'https://api.line.me/v2/bot/message/reply' 3 const request = require('request');const TARGET_URL = 'https://api.line.me/v2/bot/message/reply'
3 -const TOKEN = '6lwsXwectIjTZ1NWp6c1t5l8nXaOjWgfeYfTOWNRRTVftaXMb4eSMj2zeficMr4/FWtyPPBuUB120kxZp58bwDilssdU5Uhc4mWz4kCPfcgiEcVwzXUktbYRE3xKAJU1zdYAsZZvI+87KY8qZvaRngdB04t89/1O/w1cDnyilFU=' 4 +const TOKEN = lineToken.line_token;
4 const fs = require('fs'); 5 const fs = require('fs');
5 const path = require('path'); 6 const path = require('path');
6 const HTTPS = require('https'); 7 const HTTPS = require('https');
......