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

Method buildPayload

wxapp/nice.js:173–180  ·  view source on GitHub ↗
(data = {})

Source from the content-addressed store, hash-verified

171 }
172
173 buildPayload(data = {}) {
174 return {
175 ...data,
176 b: BRAND_ID,
177 lat: data.lat || "",
178 lng: data.lng || "",
179 };
180 }
181
182 async request(apiPath, data = {}, options = {}) {
183 const payload = this.buildPayload(options.skipToken ? data : { token: this.token, ...data });

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected