mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 20:14:47 +00:00
Commit from GitHub Actions (Publish APIs & Clients)
This commit is contained in:
13
examples/twitter/timeline/node/getATwitterTimeline.js
Executable file
13
examples/twitter/timeline/node/getATwitterTimeline.js
Executable file
@@ -0,0 +1,13 @@
|
||||
import * as twitter from "m3o/twitter";
|
||||
|
||||
// Get the timeline for a given user
|
||||
async function GetAtwitterTimeline() {
|
||||
let twitterService = new twitter.TwitterService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await twitterService.timeline({
|
||||
limit: 1,
|
||||
username: "m3oservices",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await GetAtwitterTimeline();
|
||||
Reference in New Issue
Block a user