Skip to main content

Teyuto SDK Overview

Introduction

The Teyuto SDK is a powerful toolkit designed to enhance and customize the Teyuto video platform experience. It provides developers with easy access to user data and video functionalities, allowing for seamless integration and advanced customization of Teyuto-powered websites and applications.

Key Features

  1. Pre-integrated: The SDK comes pre-integrated within the Teyuto platform, requiring no additional installation steps.
  2. Easy to Use: Offers simple and intuitive JavaScript APIs for accessing user and video data.
  3. Customizable: Enables developers to create tailored experiences for Teyuto users.
  4. Real-time Updates: Provides real-time access to user and video information.

Main Components

The Teyuto SDK consists of two primary modules:

  1. Teyuto.user: Handles user-related data and operations.
  2. Teyuto.video: Manages video-related functionalities and data.

Integration and Usage

One of the key advantages of the Teyuto SDK is that it's already integrated into the Teyuto platform. This means you can start using it immediately within your Teyuto projects without any additional setup.

How to Use the SDK

  1. Access: The SDK is automatically available on all Teyuto-powered pages.
  2. Implementation: Use JavaScript to interact with the SDK.
  3. Custom Code Integration: The recommended way to use the SDK is through the custom code feature in the Teyuto builder.

Best Practices for Implementation

  1. Footer Placement: It's preferable to add your custom SDK code in the footer section of your Teyuto pages. This ensures that all necessary elements are loaded before your code runs.

  2. Using the Custom Code Feature:

    • Navigate to the Teyuto builder interface.
    • Locate the custom code or JavaScript injection section (usually found in page settings or footer options).
    • Add your SDK implementation code in this section.
  3. Example Implementation:

    <script>
    // Wait for the SDK to be ready
    Teyuto.user.onReady(function(user) {
    console.log("User logged in:", user.isLoggedIn());
    if (user.isLoggedIn()) {
    // Customize user experience here
    }
    });

    Teyuto.video.onReady(function(video) {
    console.log("Current video:", video.title);
    // Implement video-specific features
    });
    </script>
  4. Avoid Conflicts: Ensure your custom code doesn't conflict with existing Teyuto functionalities.

  5. Performance Considerations: Keep your custom code lightweight to maintain fast page load times.

Benefits of Using the SDK

  • Enhanced User Experience: Tailor the platform to your specific needs.
  • Advanced Functionalities: Implement features beyond the standard Teyuto offering.
  • Real-time Interactions: Create dynamic, responsive user interfaces.
  • Seamless Integration: Leverage Teyuto's infrastructure while adding custom touches.

Conclusion

The Teyuto SDK offers a powerful way to extend and customize the Teyuto platform. By utilizing the pre-integrated SDK through custom JavaScript code, developers can create unique, feature-rich experiences for their users while leveraging the robust infrastructure of Teyuto.

For detailed information on the SDK's capabilities and usage, refer to the specific documentation for the Teyuto.user and Teyuto.video modules.