Files
services/examples/twitter/trends/node/getTheCurrentGlobalTrendingTopics.js
2021-09-21 16:36:39 +01:00

11 lines
327 B
JavaScript
Executable File

import * as twitter from "m3o/twitter";
// Get the current global trending topics
async function GetTheCurrentGlobalTrendingTopics() {
let twitterService = new twitter.TwitterService(process.env.MICRO_API_TOKEN);
let rsp = await twitterService.trends({});
console.log(rsp);
}
await GetTheCurrentGlobalTrendingTopics();