TypeError: Cannot read property 'apiMethod' of undefined
BilawalGul opened this issue · 0 comments
BilawalGul commented
var {googleTrends} = require('google-trends-api');
var options = {
geo: 'country code or name',
date: 'yyyymm',
keywords: ['some', 'list', 'of', 'keywords'],
category: 'some category',
// timePeriod: {
// type: enumerated string 'hour', 'day', 'month', or 'year'
// value: number
// }
}
googleTrends.apiMethod(options)
.then(function(results){
console.log("Here are your google trend results!", results);
})
.catch(function(err){
console.log("there was an error :(", err);
});