Help Center

Advice and answers from the SMO.Plus Team

How can I use the JS API for a widget?

Using the widget's JS API, the site owner has the ability to programmatically control the widget.

For example: On your site (in the header of the site) there is an input field for the URL and a "Buy Views" button. Using the setUrl method, you can copy data from your field to a similar field on the widget.

Use this to return all networks with their id:

In each network you will see the serviceTypes field. From there you need to take the services id.