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.
Key | Value | Required |
---|---|---|
client_id | {your_client_id} | Yes |
client_secret | {your_client_secret} | Yes |
grant_type | 'client_credentials' | Yes |
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
.
Key | Value | Required |
---|---|---|
datasources | ['TwitterBasics'] | Yes |
paging | { pageSize: 3 } | No |