|
| 1 | +<?php |
| 2 | +namespace wcf\system\steam; |
| 3 | + |
| 4 | +class SteamAPI { |
| 5 | + // TODO: Testschlüssel: 411C7A63AF279374C9D8554B898AC0B5 |
| 6 | + // https://steamcommunity.com/dev/apikey |
| 7 | + |
| 8 | + // https://steamcommunity.com/dev?l=german |
| 9 | + |
| 10 | + public static function getNewsForApp($appID, $count = 10, $maxLength = 300) { |
| 11 | + |
| 12 | + } |
| 13 | + |
| 14 | + public static function getGlobalAchievmentPercentagesForApp($appID) { |
| 15 | + |
| 16 | + } |
| 17 | + |
| 18 | + public static function getGlobalStatsForGame($appID, $names, $count = 1) { |
| 19 | + |
| 20 | + } |
| 21 | + |
| 22 | + public static function getPlayerSummaries($steamIDs) { |
| 23 | + |
| 24 | + } |
| 25 | + |
| 26 | + public static function getFriendList($steamID, $relationShip = 'friend') { |
| 27 | + |
| 28 | + } |
| 29 | + |
| 30 | + public static function getPlayerAchievments($steamID, $appID, $language = null) { |
| 31 | + |
| 32 | + } |
| 33 | + |
| 34 | + public static function getUserStatsForGame($steamID, $appID, $language = null) { |
| 35 | + |
| 36 | + } |
| 37 | + |
| 38 | + public static function getOwnedGames($steamID, $includeAppInfo = true, $includeFreeGames = false, $appIDs = []) { |
| 39 | + |
| 40 | + } |
| 41 | + |
| 42 | + public static function getRecentlyPlayedGames($steamID, $count = null) { |
| 43 | + |
| 44 | + } |
| 45 | + |
| 46 | + public static function isPlayingSharedGame($steamID, $appIDPlaying) { |
| 47 | + |
| 48 | + } |
| 49 | + |
| 50 | + public static function getSchemaForGame($appID, $language = null) { |
| 51 | + |
| 52 | + } |
| 53 | + |
| 54 | + public static function getPlayerBans($steamIDs) { |
| 55 | + |
| 56 | + } |
| 57 | + |
| 58 | + // openID |
| 59 | + // https://openid.net/specs/openid-authentication-2_0.html |
| 60 | + |
| 61 | + public static function getOpenIDUrl($redirectUri, $realm) { |
| 62 | + // https://steamcommunity.com/openid/login?openid.ns=http://specs.openid.net/auth/2.0&openid.mode=checkid_setup&openid.return_to=https://hanashi.dev/steam/test.php&openid.realm=https://hanashi.dev&openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select |
| 63 | + } |
| 64 | + |
| 65 | + public static function validateOpenID() { |
| 66 | + // https://hanashi.dev/steam/test.php?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Flogin&openid.claimed_id=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198049434265&openid.identity=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2F76561198049434265&openid.return_to=https%3A%2F%2Fhanashi.dev%2Fsteam%2Ftest.php&openid.response_nonce=2020-01-21T12%3A41%3A54Zc4Xs%2BIFl6Up6Sr8JdU84JV4Y2n4%3D&openid.assoc_handle=1234567890&openid.signed=signed%2Cop_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle&openid.sig=GbKmtwudO%2B9WOUtvttG%2FZMFF0ts%3D |
| 67 | + } |
| 68 | +} |
0 commit comments