StreamElements

API

All Modules for StreamElements are given access to make requests on the Users' behalf. All requests are automatically authenticated.

Here is an example of requesting the latest 5 Tips from StreamElements:

const { identity } = this.identity;

const response = await window.casthub.fetch({
    integration: 'streamelements',
    method: 'GET',
    url: `tips/${identity}`,
    data: {
        limit: 5,
        sort: 'createdAt',
    },
});

This supports the StreamElements v2.0 API reference.