Untitled

Untitled

Option 1)

Add custom code that will fetch data from the API, and pass the result to the constructor.

fetch('<http://my-api.example.com/user-data/:id>')
  .then(response => response.json())
  .then( data => {
      BlingsPlayer.create({
        ...
        data,
    })
  });

Option 2)

Blings.io will create data-connectors as part of the SDK, that will rely on passing the USER-ID as a query parameter. e.g. www.company.com/blingsvideo?id=**123**).

Please consult with us for this feature.