In order to add the Tolstoy Code in your website, copy the code from your Tolstoy account and add it in your CMS editor or website Code.
This guide will explain how to connect Tolstoy to Magento to allow you to tag Products in your Tolstoy Videos.
Step 1 - Enable the token usage:
Go to Configuration (Stores > Configuration)
Navigate to Services > OAuth in the menu
Open Consumer Settings and change "Allow OAuth Access Tokens to be used as standalone Bearer tokens" to Yes
Click on Save Config
Step 2 - Get access token:
Go to Integrations (System > Extensions > Integrations)
Add new integration
Give it a name "Tolstoy" and enter your Password.
Under API choose custom and allow the mark the following Resources:
Catalog > Inventory > Products
Content > Elements > Media Gallery
Stores > Inventory > Stocks
Stores > Currency
Click "Activate" on the new integration:
Click on Allow
Copy the Access Token
Step 3 - Go to Tolstoy App and Connect:
Log in to your Tolstoy Account
Click on Integrations in the Left Panel
Find the Magento Integration and click Connect
Click Connect and fill in:
Your Magento store URL
The Access Token you copied from Step 3
After that, you are all set and can add shoppable products to your Tolstoy's.