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

查询用户steam信息

GET
https://partner.c5game.com/api/user/v1/steamInfo
该接口需要 steam_info 权限,查询绑定的 steam 账号的信息,可以获取基础的用户信息以及绑定账号的 steam 信息

请求参数

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/steamInfo?access_token={{access_token}}'

返回响应

🟢200成功
application/json
Body
success
boolean  | null 
可选
Is request successful
data
object (Map«SteamInfoVO») 
可选
Business data
0
object (0) 
可选
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": {
        "76561199544391511": {
            "steamId": "76561199544391511",
            "avatar": "https://avatars.steamstatic.com/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb.jpg",
            "autoType": 2,
            "nickname": "tlbcpqdd",
            "tradeUrl": "https://steamcommunity.com/tradeoffer/new/?partner=357768573&token=K1EFi8mZ"
        }
    },
    "errorCode": 0,
    "errorMsg": null,
    "errorData": null,
    "errorCodeStr": null
}
修改于 2024-09-29 05:46:41
上一页
用户资产信息
下一页
读取 steam 库存
Built with