GuidesAPI GuideChangelog
Log In
Guides

Reward Achievement Control

How to Use Rewards

This guide explains how to integrate the reward feature provided by Saucelive with your own coupon system.

The reward-related UI can be managed directly in the Live Console.
For detailed instructions on how to register and configure rewards, please refer to the Reward guide - Live console .

Once a user clicks Join for a registered reward, the CLICK button will appear after 1 minute.

📘

The url field must be configured.

When the user clicks the CLICK button, you can receive the corresponding data using the following code:

    ...
    case "sauceflexMoveReward":
      console.log("Reward Completion Link Data", jsonData.params.linkUrl);
      break;

Reward Usage Example

The following is a sample implementation for handling reward completion.
You can check whether the user is logged in within your internal logic, and upon clicking the reward button, trigger your custom reward API or download link.

case "sauceflexMoveReward": {
  const rewardLink = jsonData.params.linkUrl;

  // If You Operate Your Own API Server,below is an example of how to handle different outcomes:
  if (isLogin && memberData) {
    fetch(`${YOUR_REWARD_API}/${memberData}`)
      .then((res) => res.json())
      .then((res) => {
        if (res.success) {
          window.alert("Reward points have been successfully issued.");
        } else {
          window.alert("All reward points have been claimed.");
        }
      })
      .catch(() => {
        window.alert("An error occurred while issuing reward points.");
      });
  } else {
    location.href = rewardLink;
  }
  break;
}

Did this page help you?
🏠 소스라이브 🎬 소스클립 🔗 소스링크 📢 소스애드
🧩 API 가이드
🆕 최근 업데이트
💬 도움이 더 필요하신가요?
메일로 문의 카카오톡 채널로 문의
담당자에게 문의하기

궁금한 점이나 불편했던 점을 남겨주시면 담당자가 확인 후 답변드릴게요.

가이드 챗봇 BETA
* AI를 활용해 답변해서 사실과 다를 수도 있어요. 더 궁금한 사항은 '담당자에게 문의하기'를 이용해주세요.
💡 궁금한 솔루션(예: 라이브, 링크 등)을 함께 적어주시면 더 정확한 답변을 받을 수 있어요.