MCPcopy Create free account
hub / github.com/Semporia/Scripts / taskPostUrl

Function taskPostUrl

jd_live_redrain.js:263–276  ·  view source on GitHub ↗
(function_id, body = body)

Source from the content-addressed store, hash-verified

261}
262
263function taskPostUrl(function_id, body = body) {
264 return {
265 url: `https://api.m.jd.com/client.action?functionId=${function_id}`,
266 body: body,
267 headers: {
268 'Host': 'api.m.jd.com',
269 'content-type': 'application/x-www-form-urlencoded',
270 'accept': '*/*',
271 'user-agent': 'JD4iPhone/167408 (iPhone; iOS 14.2; Scale/3.00)',
272 'accept-language': 'zh-Hans-JP;q=1, en-JP;q=0.9, zh-Hant-TW;q=0.8, ja-JP;q=0.7, en-US;q=0.6',
273 //"Cookie": cookie,
274 }
275 }
276}
277
278function taskUrl(function_id, body = {}) {
279 return {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected