Skip to content

Instantly share code, notes, and snippets.

@nathanmac
Last active May 11, 2020 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanmac/9879fe26b7a24a567de287fd22512188 to your computer and use it in GitHub Desktop.
Save nathanmac/9879fe26b7a24a567de287fd22512188 to your computer and use it in GitHub Desktop.
var request = require("request");
var options = {
method: 'GET',
url: 'https://api.meltwater.com/v1/analytics/8285607',
qs: {
start: '2019-09-10T10:00:00',
end: '2019-09-11T10:00:00',
tz: 'America/Los_Angeles',
source: 'twitter'
},
headers: {'content-type': 'application/json', apikey: '<API KEY>'}
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment