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

Method buildUrl

wxapp/wugenvboshi.js:131–141  ·  view source on GitHub ↗
(apiPath, query = {})

Source from the content-addressed store, hash-verified

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

Callers 1

requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected