修仙 API角色
POST
/business/xiuxian/player/create创建修仙角色,需先通过 OAuth 登录且未创建过角色。
注意事项
- 需要有效的 OAuth Bearer Token。
- 重复创建返回 code=1,message='修仙数据已存在或今日已操作'。
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/business/xiuxian/player/create" \ -H "Content-Type: application/json" \ -d '{ "user_name": "string", "cultivation_type": "string" }'{ "code": 0, "message": "创建角色成功", "data": { "user_id": "b1_p1", "user_name": "无名道友", "cultivation_type": "剑修", "spiritual_root": "金灵根", "state": "空闲", "gold": 100, "experience": 0, "lifespan": 100 }, "time": 1779502528}