Social Boost Development Instructions
Social Boost refers to the act of inviting friends to assist in gaining additional discounts, rewards, or get whitelisted, etc. It can help web3 projects with user acquisition. This document will outline the necessary development tasks for using this event and provide an example implementation code for reference.
1. Obtain an SDN developer key
This key distinguishes users across various projects and is used for gathering operational data in events and chats.
Email developer@sending.network with the subject "Developer Key Request." Include your name and a brief project overview, detailing its purpose and scope.
2. Integrate SDN Chat Widget
The SDN chat widget is a chat tool that can be easily integrated into your website using a few lines of code. The event page will appear in an iframe window within the widget. To start, integrate the widget into your website. You can access the SDK Documentation here.
3. Recognize Event Links
When project operators create an event, a unique event link is generated: https://DOMAIN_NAME/event/{id}.
Following user-initiated boosts, distinct share links are formed, containing event and boost IDs.
4. (Optional) Web Page Entrance
You can add a button for users to initiate boosts. Clicking should:
(If applicable) Check boost prerequisites, for instance, ensuring users have registered on your website beforehand. Skip this step if no special requirements exist.
Open the chat widget window with window.chatWidgetApi.showWidget(isShow).
Log into the chat widget via window.chatWidgetApi.DIDLogin. If you'd like to connect the website login and chat widget login together, please refer to the method here.
The event page will show and the user can start inviting friends to help.
Miscellaneous
Image
Event operators can assign event banners and reward icons using image URLs. Ensure that these images do not require CORS authentication to prevent loading issues. For images on your server, grant access permission to the following domain:
https://eventadmin.sending.network
https://events.sending.network
Example Implementation Code
If you require a customized event address, embed sdnChatWidget.js into your project page and refer to the mentioned methods for passing or parsing URL parameters.
Last updated