Skip to main content
Version: Next

User functions

Get user by ID

This function helps to get information of a user by user ID:

curl --location 'https://link.dynamicpixels.dev/game/[CLIENT ID]/server/services/user/[USER ID]' \
--header 'Authorization: Bearer [PUT ACCESS TOKEN HERE]'

Get user by Steam ID

This function helps to get information of a user by steam ID:

curl --location 'https://link.dynamicpixels.dev/game/[CLIENT ID]/server/services/user/steam/[USER ID]' \
--header 'Authorization: Bearer [PUT ACCESS TOKEN HERE]'

Find Users

This function find in users and return all users match the condition:

curl --location 'https://link.dynamicpixels.dev/game/[CLIENT ID]/server/services/user/find?skip=[SKIP]&limit=[LIMIT]' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer [PUT ACCESS TOKEN HERE]'
--data '{
[FIELD]: [VALUE]
}'

the data fields can be a part of users properties.

Edit User By ID

curl --location --request PUT 'https://link.dynamicpixels.dev/game/[CLIENT ID]/server/services/user/[USER ID]' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer [PUT ACCESS TOKEN HERE]'
--data '{ "data": { ... } }'

the data should be a part of user's properties.

User properties

  • name
  • image
  • steam_id
  • steam_app_id
  • phone_number
  • username
  • label
  • tags