Tribally SDK provide several custom elements of Web Components (https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements) standard, which suitable for different cases.
Each element can be configured by attributes and has own behavior.
Authorization, getting and modifying data is built in this elements.
You only must add this elements into your markup and inside it will be created all what needed like posts, forms and more.
Tribally SDK provides two ways to initialize SDK: authorized and not authorized.
TriballySDK
object which contain the init
method. This method must be called with access
and refresh
token which you must get by previous step.// Initialize SDK with access and refresh tokens
TriballySDK.init(access, refresh);
...
<tribally-feed></tribally-feed>
...
If you want to let your users to watch feed without authorization, in step 2 you should do this: