1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
export const wanmeiInfos = async (streamID: String) => {
const data = { csgoSeasonId: "", steamId64: streamID };
let response = await fetchJSON(
"https://api.wmpvp.com/api/v2/csgo/pvpDetailDataStats",
{
method: "POST",
headers: {
Host: "api.wmpvp.com",
Accept: "application/json, text/plain, */*",
"X-Requested-With": "XMLHttpRequest",
appversion: "3.0.8",
"Accept-Language": "zh-CN,zh-Hans;q=0.9",
platform: "h5_ios",
"Accept-Encoding": "gzip, deflate, br",
Origin: "https://news.wmpvp.com",
"User-Agent":
"Mozilla/5.0 (iPhone; CPU iPhone OS 16_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148- EsportsApp Version=3.0.8",
Referer: "https://news.wmpvp.com/",
Connection: "keep-alive",
},
body: JSON.stringify(data),
}
);
return response;
};
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