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

Method buildUrl

wxapp/yunduodingding.js:130–140  ·  view source on GitHub ↗
(apiPath, query = {})

Source from the content-addressed store, hash-verified

128 }
129
130 buildUrl(apiPath, query = {}) {
131 const pathname = apiPath.replace(/^\/+/, "");
132 const params = querystring.stringify({
133 store_id: "",
134 app_id: MINI_APP_ID,
135 kdt_id: KDT_ID,
136 access_token: this.accessToken,
137 ...query,
138 });
139 return `${API_BASE}/${pathname}?${params}`;
140 }
141
142 getHeaders(extra = {}) {
143 return {

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected