MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / actionUrl

Function actionUrl

client/js-client/src/rlClient.js:138–149  ·  view source on GitHub ↗
(type, user_id, item_id, rlabs, source, rectag, position, click_only, extra_data)

Source from the content-addressed store, hash-verified

136 }
137
138 function actionUrl(type, user_id, item_id, rlabs, source, rectag, position, click_only, extra_data) {
139 return fullEndpoint("/js/action/new") +
140 "&type=" + type +
141 "&user=" + user_id +
142 "&item=" + item_id +
143 (rlabs ? ("&" + params.track_par + "=" + rlabs) : "") +
144 (rectag ? ("&rectag=" + rectag) : "") +
145 (source ? ("&source=" + encodeURIComponent(normalise(source))) : "") +
146 (position ? ("&pos=" + position) : "") +
147 (click_only ? ("&click_only=" + click_only) : "") +
148 (extra_data ? ("&extra_data=" + encodeURIComponent(extra_data)) : "");
149 }
150
151 function userUrl(user_id, facebook_opts) {
152 return fullEndpoint("/js/user/new") +

Callers 1

addActionFunction · 0.85

Calls 2

fullEndpointFunction · 0.85
normaliseFunction · 0.85

Tested by

no test coverage detected