C5GAME-伙伴平台
  1. 用户信息
C5GAME-伙伴平台
  • OAuth2 授权流程介绍
  • 用户接口
    • 接口说明
    • 用户信息
      • 用户基础信息
        GET
      • 用户手机号
        GET
      • 用户资产信息
        GET
      • 查询用户steam信息
        GET
      • 读取 steam 库存
        GET
    • 用户订单
      • 购买订单查询
      • 出售订单查询
      • 订单发货
    • 商品管理
      • 在售列表
      • 上架
      • 在售改价
      • 商品下架
  • 合作伙伴接口
    • 接口说明
    • 获取商品价格
      POST
  1. 用户信息

用户基础信息

GET
https://partner.c5game.com/api/user/v1/simple-info
该接口需要权限 simple_info

请求参数

Query 参数
access_token
string 
可选
示例值:
{{access_token}}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://partner.c5game.com/api/user/v1/simple-info?access_token={{access_token}}'

返回响应

🟢200成功
application/json
Body
success
boolean  | null 
可选
Is request successful
data
object (SimpleUserInfoVO) 
可选
Business data
openid
string  | null 
openid
可选
nickname
string  | null 
昵称
可选
avatar
string  | null 
头像
可选
errorCode
integer  | null 
可选
Error code
errorMsg
string  | null 
可选
Error message
errorData
object (Object) 
可选
Error data,when errorCode is not equals to 0,maybe this property will have a value
errorCodeStr
string  | null 
可选
like the errorCode,but this property is string
示例
{
    "success": true,
    "data": {
        "openid": "3783ee52a9af4731b2704f5bac6a7151",
        "nickname": "玩家9605963771",
        "avatar": "https://i.c5game.com/image/u-8876215d8b5185b3f98.jpg"
    },
    "errorCode": 0,
    "errorMsg": null,
    "errorData": null,
    "errorCodeStr": null
}
修改于 2024-06-04 06:31:36
上一页
接口说明
下一页
用户手机号
Built with