* 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 } = {})
| 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 |
nothing calls this directly
no test coverage detected