1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import process from "node:process";
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
import { twitterJSON } from "https://esm.town/v/stevekrouse/twitterJSON";
export const stevekrouseFollowing = (async () => {
let userId = 431200836; // stevekrouse
twitterJSON;
let resp = await fetchJSON(
`https://api.twitter.com/1.1/friends/ids.json?user_id=${userId}`,
{
headers: {
authorization: `Bearer ${process.env.twitter2}`,
},
},
);
console.log(resp);
return resp.ids.map((id) => id.toString());
})();
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023