0.0.95 • Published 2 years ago
envoy-toolkit-javascript v0.0.95
Installation
You can install envoy js toolkit via unpkg.com.
<script src="https://unpkg.com/envoy-toolkit-javascript@latest/dist/index.umd.js"></script>
Quick start
1. Import toolkit components
const { EnvoyToolKit, ContentType } = envoyToolkitJavascript;
2. Initialize a toolkit
const apiKey = '<Api-Key>' // you cand find it in Account -> Security -> Api key
EnvoyToolKit.init({
apiKey,
sandbox: true // if you need to use sandbox envinronment
})
3. Create a link
<a class='envoy-shareLink' href='#'>
<svg class='inline-block' width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g opacity="0.5">
<path d="M10 5H6C5.44772 5 5 5.44772 5 6V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V14" stroke="#0D0D0D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M20 9L20 4H15" stroke="#0D0D0D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M13 11L20 4" stroke="#0D0D0D" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>
</a>
const linkConfig = {
userId: 'your-user-id',
contentConfig: {
contentType: ContentType.Video,
contentId: 'your-content-id',
contentName: 'Your content name',
contentDescription: 'Your content name description',
},
};
const giftElem = document.querySelector('.envoy-shareLink')
EnvoyToolKit.setupLink(giftElem, linkConfig)
0.0.86
2 years ago
0.0.87
2 years ago
0.0.89
2 years ago
0.0.95
2 years ago
0.0.90
2 years ago
0.0.91
2 years ago
0.0.92
2 years ago
0.0.93
2 years ago
0.0.94
2 years ago
0.0.85
2 years ago
0.0.84
2 years ago
0.0.83
2 years ago
0.0.82
2 years ago
0.0.81
2 years ago
0.0.80
2 years ago
0.0.79
2 years ago
0.0.77
2 years ago
0.0.75
2 years ago
0.0.74
2 years ago
0.0.73
2 years ago
0.0.63
2 years ago
0.0.62
2 years ago
0.0.61
2 years ago
0.0.33
2 years ago
0.0.32
2 years ago
0.0.31
2 years ago
0.0.18
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago