MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / getHeaders

Method getHeaders

wxapp/yunduodingding.js:142–150  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

140 }
141
142 getHeaders(extra = {}) {
143 return {
144 "User-Agent": USER_AGENT,
145 "Referer": `https://servicewechat.com/${MINI_APP_ID}/64/page-frame.html`,
146 "Extra-Data": this.buildExtraData(),
147 "Accept": "application/json, text/plain, */*",
148 ...extra,
149 };
150 }
151
152 async request({ method = "GET", apiPath, query = {}, data = {}, skipToken = false }) {
153 const oldToken = this.token;

Callers 1

requestMethod · 0.95

Calls 1

buildExtraDataMethod · 0.95

Tested by

no test coverage detected