(user_id, item_id, rlabs, rectag, options)
| 174 | } |
| 175 | |
| 176 | function recommendationsUrl(user_id, item_id, rlabs, rectag, options) { |
| 177 | return fullEndpoint("/js/recommendations") + |
| 178 | "&user=" + user_id + |
| 179 | "&item=" + item_id + |
| 180 | "&dimensions=" + ((options.dimensions) || (options.dimension || 0)) + |
| 181 | "&limit=" + (options.limit || 10) + |
| 182 | (options.attributes ? ("&attributes=" + attributeString(options.attributes)) : "") + |
| 183 | (options.algorithms ? "&algorithms=" + options.algorithms : "") + |
| 184 | (rectag ? ("&rectag=" + rectag) : "") + |
| 185 | (rlabs ? ("&" + params.track_par + "=" + rlabs) : "") + |
| 186 | (options.cohort ? ("&cohort=" + options.cohort) : ""); |
| 187 | } |
| 188 | |
| 189 | function jsonpCall(url, callback) { |
| 190 | var stamp = new Date().getTime(), |
no test coverage detected