How to use Smart Content API

With the Smart Content API you can integrate advanced login system or load extra visitor data into the website.

Make sure to install Smart API in the project settings page as discussed here:

https://support.sitemanager.io/installing-smart-content-premium-module

Login to the project, go to the code environment and click on Smart Content edit settings.

There you will find your Client ID and Client Secret key. These keys will be used to connect to the API.  

apiconfig 

 

To insert a visitor in a group you will need to use the Group ID that can be found by clicking the pencil icon next to the group.

groupid-1

In this example the Group ID is 1.

 

Example Code

You can find how to use these credentials and group ID here:

https://github.com/TeamSiteManager/smartapi