import https from 'https';
const httpsGet = (url, onSuccess, onFail) => {
    https
        .get(url, res => {
        let body = '';
        res.on('data', chunk => {
            body += chunk;
        });
        res.on('end', () => {
            onSuccess(body);
        });
    })
        .on('error', onFail);
};
export default httpsGet;
