1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
export let lookupTwitterIdFree = async (id) =>
fetchText("https://tweeterid.com/ajax.php", {
"headers": {
"accept": "*/*",
"accept-language": "en-US,en;q=0.9,fi;q=0.8,fr;q=0.7",
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"sec-ch-ua":
'"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"',
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": '"macOS"',
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
},
"referrer": "https://tweeterid.com/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "input=" + id,
"method": "POST",
"mode": "cors",
"credentials": "include",
});
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