Newman Create New Message
var pc = require('postman-collection');
// Empty collection
var myCollection = new pc.Collection({ /* name, etc */});
// Empty item
var myItem = new pc.Item();myItem.request = new pc.Request(
{ url: 'http://example.com/something',
method: 'POST'});myItem.request.headers.add({ key: 'ClientId', value: 'whatever'
});
// same for other headers
// Add the item to our collection
myCollection.items.add(myItem);
// get the JSONified collection
plainCollection = myCollection.toJSON();