I had to do this in one of my node_helper modules… Hope it helps:
request({
url: url,
method: ‘GET’,
headers: {
‘User-Agent’: ‘MagicMirror/1.0 (’ + this.config.email + ‘)’
}
You won’t need the +this.config.email but it was required for the data I was seeking :)