NodeJS
Integrate your NodeJS app with us using our NodeJS package
Add @tyrads.com/tyrads-sdk-iframe to your package.json as follows:
npm install --save @tyrads.com/tyrads-sdk-iframe
# or
yarn add @tyrads.com/tyrads-sdk-iframe
The latest available version of NodeJS @tyrads.com/tyrads-sdk-iframe is v0.2.2.
After successfully installing our package, create a TyrAdsSdk object with your API key and API secret:
const tyradsSDK = TyradsSDK.make(API_KEY, API_SECRET);
This TyrAdsSdk class also supports localization, more info about localization
For example:
const tyradsSDK = TyradsSDK.make(API_KEY, API_SECRET, "en");
You can do the authentication by calling to our package
After obtaining the token successfully, you can call iframeUrl method to get the iframe URL
Deeplinking Routes
This iframeUrl method also supports deeplinking, more info about deeplinking routes
For example:
Embedding The Iframe
If your website is using html, you can add an iframe to your page to integrate TyrAds web:
For example:
For example implementation using our NodeJS SDK, you can find it here