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

Method request

daily/xinxi.js:54–66  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

52 return crypto.createHash("md5").update(t).digest("hex")
53 }
54 request(options) {
55 let req_timestamp = Date.now();
56 let request_id = Math.random().toString(36).substr(2, 9) + "-" + req_timestamp;
57 let baseHeaders = {
58 "req_timestamp": req_timestamp,
59 "request_id": request_id,
60 "User-Agent": defaultUserAgent,
61 "sso": this.token,
62 "sign": this.generateMd5Signature({ data: JSON.stringify(options.data), req_timestamp, request_id, }),
63 }
64 options.headers = { ...baseHeaders, ...options.headers }
65 return axios.request(options)
66 }
67
68 async userInfo() {
69 let options = {

Callers 11

userInfoMethod · 0.95
signInMethod · 0.95
shareMethod · 0.95
tasklistMethod · 0.95
browseGoodsMethod · 0.95
postsCommentsMethod · 0.95
getPostsMethod · 0.95
likePostsMethod · 0.95
followUserMethod · 0.95
likeGoodsMethod · 0.95
getNoticeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected