Skip to content

Commit

Permalink
feat: added deprecation note for POST /activities/{activity_id}/rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyxdd committed Jan 6, 2025
1 parent 76f1c14 commit ce74a1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,9 @@ paths:
post:
tags:
- Activities
summary: Generates a unique reward link
description: Returns a unique reward link for users to receive rewards through particpation in activities. The link is generated based on activity ID, user's unique identificator (wallet friendly address or Telegram user id). For example, users can [connect a wallet](https://docs.ton.org/develop/dapps/ton-connect/overview) before they start participating in the activity. In case of Telegram Mini App, simply use [window.Telegram.WebApp.initData.user.id](https://www.tapps.center/docs/packages/tma-js-init-data/user).
summary: (to be deprecated soon)
description: This endpoint will be **deprecated** soon, please consider using an [alternative approach](https://ton-society.github.io/sbt-platform/#/Allowlists). Otherwise, it returns a unique reward link for users to receive rewards through particpation in activities. The link is generated based on activity ID, user's unique identificator (wallet friendly address or Telegram user id). For example, users can [connect a wallet](https://docs.ton.org/develop/dapps/ton-connect/overview) before they start participating in the activity. In case of Telegram Mini App, simply use [window.Telegram.WebApp.initData.user.id](https://www.tapps.center/docs/packages/tma-js-init-data/user).

operationId: createRewardLink
parameters:
- name: activity_id
Expand Down

0 comments on commit ce74a1a

Please sign in to comment.