Last active
May 11, 2020 16:17
-
-
Save nathanmac/9879fe26b7a24a567de287fd22512188 to your computer and use it in GitHub Desktop.
This file contains 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
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