Personalized Emails API

This document will show an example of how you can request a users top 3 tweets to display in a personalised email using AlphaStream’s Insights API.

Request Access Token

The Insights API is protected by access tokens. To request an access token, you will need both your client_id and client_secret. The Bearer token must then be included in any API request Authorization headers.

KeyValue Required
client_id{your_client_id}Yes
client_secret{your_client_secret}Yes
grant_type'client_credentials'Yes

Example Request

Example Response

Requesting a personalized news feed

This request will return a collection of financial content that is relevant to the users’ interactions, ordered by a count of mentioned in interactions. For this example, we want to request the top 3 tweets to display in a personalized email, but you could also include different types of content from various datasources.

KeyValueRequired
datasources['TwitterBasics']Yes
paging{ pageSize: 3 }No

Example Request

 

Example Response