EggyByte Server
  1. User
EggyByte Server
  • Default module
    • 项目介绍
    • 用户协议
    • 隐私政策
    • SuperDungeon
      • 超能魔盗团 隐私政策
      • User
        • Get User Data
          POST
        • Free Lottery
          POST
        • Paid Lottery
          POST
        • Sell Artwork
          POST
        • Find Top Users
          POST
        • Get Initial Data
          POST
        • Get Access
          POST
        • Change Name
          POST
      • Rank
        • Update
        • Find Top Users
      • Local
      • Remote
    • EggyByte
      • Account
        • Login
        • Register
        • Login Or Register
        • Access
        • Buy
        • Get Public Access
        • Formal Register
      • Game
        • Save Data
        • Load Data
      • Test
        • Random String
        • Get Map Json
      • Crypto
        • Compute Hash
        • Encrypt
        • Encrypt Map
        • Decrypt
      • Ad
        • Show
        • Debug
        • Impression Callback
      • User
        • Lock Test
        • Get User Data
        • Open Chest
      • Admin
        • Create Api Roles Copy
        • Create Api Roles Copy Copy
        • Delete Api Roles
        • Create Api Roles
      • Database
        • Update Mongo Users
        • List Databases
        • List Collections
        • List Mongo Users
        • Get Collection Stats
        • Get Collection Info
        • Get Paginated Documents
        • Create Mongo Users
        • Create Mongo Databases
      • Mailing
        • Send Mail
        • Send Captcha
        • Check Captcha
      • ThirdParty
        • Connect Url
        • Callback
        • Payment Link
    • 1
    • Untitled Endpoint
      GET
    • Untitled Endpoint
      POST
    • Setup
      POST
    • Create Database
      POST
    • Get Card
      GET
    • Create Question
      POST
    • Create Collection
      POST
    • Get Dashboards
      GET
    • Get Dashboard
      GET
    • Get Dashboard Copy
      POST
    • Untitled Endpoint
      GET
    • Untitled Endpoint
      GET
  • auth/v1/auth.proto
    • AuthService
      • GetJWKS returns the JSON Web Key Set for token validation
      • GetOIDCDiscovery returns the OIDC discovery document
      • Authorize initiates the OAuth/OIDC authorization flow
      • Authorize initiates the OAuth/OIDC authorization flow
      • IntrospectToken validates and returns information about a token (RFC 7662)
      • RevokeToken revokes an access or refresh token (RFC 7009)
      • Token exchanges authorization code or refresh token for access tokens
      • GetUserInfo returns user information from a valid access token
      • GetUserInfo returns user information from a valid access token
      • ListClients lists all OIDC clients
      • RegisterClient registers a new OIDC client
      • DeleteClient deletes an OIDC client
      • UpdateClient updates an existing OIDC client
      • Authenticate user credentials and return tokens (for password grant)
      • Logout invalidates user tokens and sessions
      • RefreshToken refreshes an access token using a refresh token
      • ListRoles lists all roles
      • CreateRole creates a new role
      • DeleteRole deletes a role
      • UpdateRole updates an existing role
      • AssignUserRole assigns a role to a user
      • RevokeUserRole revokes a role from a user
  • user/v1/user.proto
    • UserService
      • ListUsers retrieves a paginated list of users (admin only)
      • CreateUser creates a new user account (called by Auth service after successful registration)
      • SearchUsers searches users by criteria
      • GetUserStats retrieves user statistics
      • SendVerificationEmail sends a verification code to user's email
      • VerifyEmail verifies user's email with verification code
      • GetUser retrieves a user's profile
      • UpdateUser updates basic user information
      • ActivateUser activates a user account
      • ListUserAddresses lists all user addresses
      • AddUserAddress adds a new address for the user
      • DeleteUserAddress deletes a user address
      • UpdateUserAddress updates an existing user address
      • BanUser bans a user account permanently
      • DeactivateUser deactivates a user account (soft delete)
      • UpdateUserPreferences updates user's preferences
      • GetUserProfile retrieves a user's complete profile (including extended info)
      • UpdateUserProfile updates user's extended profile
      • SuspendUser suspends a user account temporarily
  1. User

Change Name

POST
/user/changename

Request

Authorization
Add parameter in header
X-Api-Key
Example:
X-Api-Key: ********************
Header Params

Body Params application/json

Example
{
    "id": "IWZf/t9DSXtV9veaEDJwRA==",
    "type": "user-data",
    "game_info": "super-dungeon@W6APYNmwbktFAmx6EeVAsqYUmMRr1Ezj:b5uNGyADIo9hXfjiuHDoitv8gAG0DSSi",
    "sign": "zdMKYGDcnOZPk1klG1dXPIc9RoUs9c/70AhRT4Zzi63P+78SndBsIGX9DlA8dGlAPlTBLeb7Jpkl2Ys9z6U3COzCgp4/JMKSfrBBwCPxZg4JH/nxTj1XY7Gnl4Asrgwgb+c9IH4qF0VKXS/Ta+S9xZhbAeVCSpXWrNs6Pl4OZ+Cc7aL36f5go05OsgQ6Cz8q9Ts5IZdWnqL8nhNxmyM4bpAWQby9Gz0EkG2bd6qV",
    "data": "{\"levelData\":{\"level\":1,\"exp\":0},\"registerTime\":0,\"lastLoadTime\":0}"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/user/changename' \
--header 'X-Access-Token;' \
--header 'X-Api-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "IWZf/t9DSXtV9veaEDJwRA==",
    "type": "user-data",
    "game_info": "super-dungeon@W6APYNmwbktFAmx6EeVAsqYUmMRr1Ezj:b5uNGyADIo9hXfjiuHDoitv8gAG0DSSi",
    "sign": "zdMKYGDcnOZPk1klG1dXPIc9RoUs9c/70AhRT4Zzi63P+78SndBsIGX9DlA8dGlAPlTBLeb7Jpkl2Ys9z6U3COzCgp4/JMKSfrBBwCPxZg4JH/nxTj1XY7Gnl4Asrgwgb+c9IH4qF0VKXS/Ta+S9xZhbAeVCSpXWrNs6Pl4OZ+Cc7aL36f5go05OsgQ6Cz8q9Ts5IZdWnqL8nhNxmyM4bpAWQby9Gz0EkG2bd6qV",
    "data": "{\"levelData\":{\"level\":1,\"exp\":0},\"registerTime\":0,\"lastLoadTime\":0}"
}'

Responses

🟢200成功
text/plain
返回refresh_token
Body

Modified at 2025-01-17 15:46:56
Previous
Get Access
Next
Update
Built with