Files
services/examples/twitter/trends/node/getTheCurrentGlobalTrendingTopics.js

11 lines
324 B
JavaScript
Executable File

const { TwitterService } = require("m3o/twitter");
// Get the current global trending topics
async function getTheCurrentGlobalTrendingTopics() {
let twitterService = new TwitterService(process.env.MICRO_API_TOKEN);
let rsp = await twitterService.trends({});
console.log(rsp);
}
getTheCurrentGlobalTrendingTopics();