* Post data to personalization endpoint * * @method post * @memberof Personalization.prototype * @param {string} resource - personalized resource endpoint i.e "follow_recommendations" * @param {object} options - Additional options * @param {object} data - Data to send in the payloa
(resource: string, options: Record<string, string> = {}, data: UR = {})
| 60 | * @example client.personalization.post('follow_recommendations', {foo: 'bar', baz: 'qux'}) |
| 61 | */ |
| 62 | post(resource: string, options: Record<string, string> = {}, data: UR = {}) { |
| 63 | return this.client.post<PersonalizationAPIResponse<StreamFeedGenerics>>({ |
| 64 | url: `${resource}/`, |
| 65 | serviceName: 'personalization', |
| 66 | qs: options, |
| 67 | body: data, |
| 68 | token: this.client.getPersonalizationToken(), |
| 69 | }); |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Delete metadata or activities |
nothing calls this directly
no test coverage detected