MCPcopy Create free account
hub / github.com/GetStream/stream-js / get

Method get

src/personalization.ts:42–49  ·  view source on GitHub ↗

* Get personalized activities for this feed * * @method get * @memberof Personalization.prototype * @param {string} resource - personalized resource endpoint i.e "follow_recommendations" * @param {object} options Additional options * @return {Promise<PersonalizationAPIResponse<Str

(resource: string, options: Record<string, string> & { token?: string } = {})

Source from the content-addressed store, hash-verified

40 * @example client.personalization.get('follow_recommendations', {foo: 'bar', baz: 'qux'})
41 */
42 get(resource: string, options: Record<string, string> & { token?: string } = {}) {
43 return this.client.get<PersonalizationAPIResponse<StreamFeedGenerics>>({
44 url: `${resource}/`,
45 serviceName: 'personalization',
46 qs: options,
47 token: options.token || this.client.getPersonalizationToken(),
48 });
49 }
50
51 /**
52 * Post data to personalization endpoint

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected