เอกสาร Steamworks
อินเตอร์เฟซ ISteamUserAuth
ใช้เข้าถึงข้อมูลเกี่ยวกับผู้ใช้

หากต้องการเรียนรู้เพิ่มเติมเกี่ยวกับวิธีใช้ Steamworks Web API กรุณาอ่าน ภาพรวมของ Web API

AuthenticateUser

POST https://partner.steam-api.com/ISteamUserAuth/AuthenticateUser/v1/
ชื่อประเภทที่ต้องการคำอธิบาย
steamiduint64ควรเป็นไอดี Steam ของผู้ใช้ที่ไม่ได้เข้ารหัส
sessionkeyrawbinaryควรเป็นกลุ่มข้อมูลแบบสุ่มขนาด 32 ไบต์ ซึ่งจะได้รับการเข้ารหัสแบบ RSA โดยใช้คีย์สาธารณะของระบบ Steam การสุ่มค่าเป็นสิ่งที่จำเป็นเพื่อความปลอดภัยของข้อมูล
encrypted_loginkeyrawbinaryควรเป็น loginkey ของผู้ใช้ที่ได้รับการแฮช และเข้ารหัสด้วยวิธี AES โดยใช้ sessionkey

AuthenticateUserTicket

GET https://partner.steam-api.com/ISteamUserAuth/AuthenticateUserTicket/v1/
ชื่อประเภทที่ต้องการคำอธิบาย
keystringคีย์การตรวจสอบสิทธิ์ของผู้จัดจำหน่าย Steamworks Web API
appiduint32appid ของเกม
ticketstringConvert the binary ticket data from GetAuthTicketForWebApi into a hexadecimal string and pass that string in as this parameter.
identitystringIdentifying string passed as a parameter to GetAuthTicketForWebApi when the ticket was created, used to identify the entity calling this webapi. If this identity string is passed, only tickets created with that parameter will successfully authenticate.

การคืนค่า: ไอดี Steam แบบ 64 บิตของผู้ใช้ หากตั๋วของผู้ใช้ถูกต้อง

หมายเหตุ: การเรียกนี้จำเป็นต้องใช้คีย์ API ของผู้จัดจำหน่ายเพื่อใช้เมธอดนี้ ดังนั้น จะต้องเรียก API นี้จากเซิร์ฟเวอร์ที่ปลอดภัย และไคลเอนต์จะไม่มีทางใช้งาน API นี้ได้โดยตรง!

นอกจากนี้ AuthenticateUserTicket ยังพร้อมให้ใช้งานกับเซิร์ฟเวอร์เกมได้ทางโดเมน https://api.steampowered.com/domain โดยใช้คีย์การตรวจสอบสิทธิ์ของผู้ใช้ Web API การร้องขอเหล่านี้เป็นแบบจำกัดอัตรา