Smashcast

API

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

Here is an example of requesting the authenticated User from Smashcast:

const { name } = this.identity;

// Fetch the User Data.
const user = await window.casthub.fetch({
    integration: 'smashcast',
    method: 'GET',
    url: `user/${name}`,
});

This supports the Smashcast API reference.