我正在使用OpenId提供程序,使用户可以通过Steam登录到我的网站。当他们注册其他信息时,我想预填他们的电子邮件地址。但是,我似乎无法为此找到一个蒸汽API。当我看一下这些声明时,它只是虚无和友好的名字。然后我想也许在这里使用webapi:
http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/
但是,当我提供我的信息时,我就回来了:
"response": {
"players": [
{
"steamid": "99999999999999999",
"communityvisibilitystate": 3,
"profilestate": 1,
"personaname": "Something",
"lastlogoff": 1437554243,
"profileurl": "http://steamcommunity.com/id/Something/",
"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/a4/a4a54b1e0a8b0b3b85b87f9e38fde784b3ce322d.jpg",
"avatarmedium": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/a4/a4a54b1e0a8b0b3b85b87f9e38fde784b3ce322d_medium.jpg",
"avatarfull": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/a4/a4a54b1e0a8b0b3b85b87f9e38fde784b3ce322d_full.jpg",
"personastate": 0,
"realname": "tom",
"primaryclanid": "103582791438339107",
"timecreated": 1084138831,
"personastateflags": 0,
"loccountrycode": "US",
"locstatecode": "FL",
"loccityid": 1020
}
]
}
最佳答案
Steam不会公开该电子邮件地址。
该信息是PII(个人身份信息)。因此,它受各种法律控制(取决于管辖范围)。
此外,如果任何拥有Steam API密钥的人都可以为Steam客户检索电子邮件地址并开始向其发送垃圾邮件,Steam将迅速失去客户。
关于asp.net - Steam获取用户的电子邮件地址,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31571267/