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

Method headers

wxapp/ykb_all.js:284–294  ·  view source on GitHub ↗
(extra = {})

Source from the content-addressed store, hash-verified

282 }
283
284 headers(extra = {}) {
285 const headers = {
286 "User-Agent": USER_AGENT,
287 "Referer": `https://servicewechat.com/${this.app.appid}/1/page-frame.html`,
288 "Accept": "application/json, text/plain, */*",
289 "content-type": "application/json",
290 ...extra,
291 };
292 if (this.token) headers.Authorization = this.token;
293 return headers;
294 }
295
296 async request({ method = "GET", apiPath, params = {}, data = {}, skipToken = false }) {
297 const options = {

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected