NodeJS
Integrate your NodeJS app with us using our NodeJS package
Installation
Add tyrads/tyrads-sdk
to your package.json
as follows:
npm install --save tyrads/tyrads-sdk
# or
yarn add tyrads/tyrads-sdk
The latest available version of NodeJS
tyrads/tyrads-sdk
is v0.1.0.
Get Started
After successfully installing our package, create a TyrAdsSdk object with your API key and API secret:
Localization
This TyrAdsSdk
class also supports localization, more info about localization
For example:
Authentication
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:
<iframe id="tyrads_iframe" src="[IFRAME_LINK]" height="650" width="300"></iframe>
For example:
<iframe id="tyrads_iframe" src="https://sdk.tyrads.com?token=eyJ2YWwiOiI3M3NIeUpNQlp4QzA1TlRHVzhxRExhWWNTeUQ5TTJIT0h3NXBvL3djVVp1Z09MR20wOTJJOTRReDBuYUFLeXhmVGRCaGYra2gvVGcydWFlbUh6aWR6S00vTmV0SEtVZVlWNk5Pdkc5Wnd5bytkSkxmUnA0aWt2eE9yQ01YTXF6LzBnRmZ3RUpucHMxem95WnRkYkVlQXJQNER3cDRZVkttb1lBdEIrZlB6cFZ3R25SSEE5UjROa2U2cGJTeTJod2c2UmI3UnN0QzZiN2Y2cENBYTlqaEhvQXhtdjM5UERPU2tDdWpHMmJIQ2N1cVRldVQ4a3hDSEE9PSIsInZlYyI6InNWbzZrejZRa09iS0tDeDUiLCJ0YWciOiJ1eDNnbjEwNEdUWXpvV1J2TTZVck1BPT0ifQ==" height="650" width="300"></iframe>
Example
For example implementation using our NodeJS SDK, you can find it here
Last updated