User Items
The User Items service, introduced in 4.2, is used to manage a collection of in-app items that users can be awarded, buy, sell, or trade (using virtual currency). Optionally, these items can be backed up to the blockchain.
Key concepts:
- Items are first defined in the Item Catalog
- Defined items can be purchased or awarded to users, where they will be recorded as userItem instances.
- Using an item may consume it (or a portion of it - or none of it). Consumed items will automatically disappear from the user's user item inventory.
- Using an item may trigger a status effect (i.e. invulnerability for 60 seconds)
- Using an item may trigger a cool-down period (before the item can be used again) or a regeneration period (a period after which the item regenerates a "use.")
API Summary
- SYS_AwardUserItemToUser - Client cloud code only Sys API to allow item(s) to be awarded to the applicable user without collecting the purchase amount. If includeDef is true, response includes associated itemDef with language fields limited to the current or default language.
- SYS_AwardUserItem - Client cloud code only call to allow item(s) to be awarded to the session user without collecting the purchase amount. If includeDef is true, response includes associated itemDef with language fields limited to the current or default language.
All the client APIs that the names beigin with "Sys" are also available to S2S. For the usages of the S2S user APIs (if they are not listed at this section), refer to brainCloud client useritems APIs.
🗃️ Cloud Code Bridge
18 items
🗃️ Authentication
1 items
🗃️ Chat
12 items
🗃️ Custom Entity
6 items
🗃️ Event
1 items
🗃️ Friend
1 items
🗃️ Gamification
1 items
🗃️ Global App
1 items
🗃️ Global Entity
17 items
🗃️ Global File
16 items
🗃️ Global Statistics
5 items
🗃️ Group
1 items
🗃️ Group File
1 items
🗃️ Heartbeat
1 items
🗃️ HTTP Client
8 items
🗃️ Identity
1 items
🗃️ Item Catalog
9 items
🗃️ Leaderboard
9 items
🗃️ Lobby
6 items
🗃️ Logging
6 items
3 items
🗃️ Messaging
7 items
📄️ Playback Stream
The PlaybackStreamService allows for the creation and replay of a series of events. A Stream can be created using the StartStream call.
🗃️ Presence
4 items
🗃️ ProductManagement
9 items
🗃️ Promotions
6 items
🗃️ Push Notifications
14 items
🗃️ Redemption Codes
6 items
📄️ Report
Report is a new service that allows devs to retrieve user-analytics-report data programmatically via S2S and cloud-code.
📄️ RoomServer
RoomServer service allows devs to directly launch hosted servers without going through lobby matchmaking.
🗃️ RTT
1 items
🗃️ Script
11 items
🗃️ Segment
1 items
🗃️ SuperRTT
2 items
🗃️ Time
1 items
🗃️ Tournament
2 items
📄️ User
The User service, introduced in version 4.3, supports basic user CRUD operations and allows iteration over all users in an app. Note that this service is only accessible via Cloud Code.
📄️ User Items
The User Items service, introduced in 4.2, is used to manage a collection of in-app items that users can be awarded, buy, sell, or trade (using virtual currency). Optionally, these items can be backed up to the blockchain.
🗃️ Virtual Currency
3 items