I am trying to make a request to an API using the get
method in the https module.
Looking at HTTPS request in NodeJS, I've got a long way, but my request doesn't appear to include the query parameters…
Using the example from above, with my mods:
var $q = require('q'),
_ = require('lodash'),
path = require('path'),
Qs = require('qs'),
path = require('path'),
uuid = require('node-uuid'),
https = require('https');
var params = {
schema: '1.0',
form: 'json',
username: 'name'
}
var options = {
host: 'openshift.redhat.com',
port: 443,
path: '/broker/rest/api',
query: params
};
var req = https.get(options, function(res) {