zoukankan      html  css  js  c++  java
  • DOTA 2 API(个人资料)

    获取个人资料 http://wiki.teamfortress.com/wiki/WebAPI/GetPlayerSummaries

    获取个人库存 http://wiki.teamfortress.com/wiki/WebAPI/GetPlayerItems

    获取库存对应 http://wiki.teamfortress.com/wiki/WebAPI/GetSchema

    (个人库存和库存对应内容较多,改日再战)

    个人资料

    个人资料获取方式:

    http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/

    要求字段:

    key=<key>
    steamids=<steamids> 要求输入64位的steamid,输入多个用逗号隔开

    返回字段:

    • response
      • players - 列表形式,具体内容取决于该用户将自己的资料设成隐私或者仅好友可见
        • steamid - 用户64位ID
        • communityvisibilitystate - int型,资料可见模式
          • 1 = 隐私
          • 2 = 仅好友可见
          • 3 = 用户好友的好友也可见
          • 4 = 只对登录Steam的用户可见
          • 5 = 公开,任何人可见
        • profilestate - 如果为1,该用户填写了自己的资料
        • personaname - 用户昵称
        • lastlogoff - unix时间格式,上次在线时间
        • profileurl - 用户Steam社区资料地址
        • avatar - 32*32图像
        • avatarmedium - 64*64图像
        • avatarfull - 184*184图像
        • personastate - 用户状态
          • 0 - 不在线 (如果资料为隐私也是如此)
          • 1 - 在线
          • 2 - 忙碌
          • 3 - 离开
          • 4 - 休息?Snooze
          • 5 - 寻找交易中
          • 6 - 寻找游戏中
        • commentpermission - 如果出现,代表任何人都可以评论
        • realname  - 真实姓名
        • primaryclanid - The 64 bit ID of the user's primary group.不懂
        • timecreated - UNIX时间形式,建号?(the profile was created)时间
        • loccountrycode  - ISO 3166 代码,用户所在国家
        • locstatecode - 可变代码长度,用户所在州
        • loccityid - 一串INT型Steam内部ID,代表所在城市
        • gameid - 如果用户在游戏中,这会是以String形式的游戏APP ID(DOTA2是570)
        • gameextrainfo - 游戏标题
        • gameserverip - The server URL given as an IP address and port number separated by a colon, this will not be present or set to "0.0.0.0:0" if none is available.
  • 相关阅读:
    Java设计模式--单列设计模式
    TCP服务器端和客服端(一)
    面向对象 ---Java抽象类
    全新的代码
    黑马程序员入学基础测试(五)
    mysql 权限管理
    centos7 端口开放
    centos7 yum 安装 mysql
    centos7 安装jdk
    centos7 yum 安装jq
  • 原文地址:https://www.cnblogs.com/Scohura/p/3616436.html
Copyright © 2011-2022 走看看