This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// docs: https://nodejs.org/dist/latest-v10.x/docs/api/https.html#https_https_request_url_options_callback | |
// all methods working, but post only with x-form-urlencoded. return promise with resolved object on line 64. | |
// extra options parameters: json=[bool], params=[object] | |
const querystring = require('querystring') | |
const https = require('https') | |
const http = require('http') | |
const cleanObject = (object, filterKeys) => Object | |
.keys(object) | |
.reduce((acc, key) => { |