Documentation

Welcome to Funpepper

What is Funpepper?

Funpepper is a platform focused on aggregating and promoting mini-games. Game developers can integrate their games into the platform to share our user system, payment/consumption system, international promotion channels, and earn revenue.

User system

Funpepper provides a complete user system. Developers only need to integrate with Funpepper to obtain user information and register game users.

Key points:

  • The platform provides a complete OAuth authorization system. Each developer receives a client_id and client_secret. With our JSSDK you can obtain a temporary authorization code, then call the platform server API to get access_token, which grants permission to operate on user accounts (balance inquiry, debit, credit, etc.).
  • Each Funpepper user has a unique openId across all games from the same developer.
  • code is a one-time temporary authorization code, valid for 10 minutes.
  • access_token is valid for 12 hours; use refresh_token to obtain a new access_token when it expires.
  • refresh_token is valid for 7 days (90 days per OAuth doc; refresh flow applies when exchanging tokens).

Currency system

Funpepper has two currencies: U Diamond and gold coins. Gold is an experience currency; users can claim free gold without recharging (3,000 gold per day on the platform).

U Diamond is the primary currency. Users can exchange it in the platform mall for gift cards, physical prizes, and crypto (GTO/USDT). Ways to obtain U Diamond:

  • Exchange from gold at a ratio of 1000:1 (1000 gold = 1 U Diamond)
  • Recharge

Each user has only one exchange opportunity and must have at least one U Diamond recharge record. U Diamond cannot be exchanged back to gold.

Because both currencies exist, each game must provide versions that support U Diamond and gold coins for a better user experience.