diff --git a/tests/test_webapi.py b/tests/test_webapi.py index 31b5445..8868210 100644 --- a/tests/test_webapi.py +++ b/tests/test_webapi.py @@ -7,8 +7,42 @@ from steam.enums import EType, EUniverse test_api_key = 'test_api_key' +test_vcr = vcr.VCR( + record_mode='new_episodes', + serializer='yaml', + filter_query_parameters=['key'], + filter_post_data_parameters=['key'], + cassette_library_dir='vcr', +) class TCwebapi(unittest.TestCase): - @vcr.use_cassette('vcr/webapi_init.json', mode='once', serializer='json') - def test_initialization(self): - api = WebAPI(test_api_key) + @test_vcr.use_cassette('webapi.yaml') + def setUp(self): + self.api = WebAPI(test_api_key) + self.api.session.headers['Accept-Encoding'] = 'identity' + + def test_docs(self): + self.assertTrue(len(self.api.doc()) > 0) + + @test_vcr.use_cassette('webapi.yaml') + def test_simple_api_call(self): + resp = self.api.ISteamWebAPIUtil.GetServerInfo() + self.assertTrue('servertime' in resp) + + @test_vcr.use_cassette('webapi.yaml') + def test_simple_api_call_vdf(self): + resp = self.api.ISteamWebAPIUtil.GetServerInfo(format='vdf') + self.assertTrue('servertime' in resp['response']) + + @test_vcr.use_cassette('webapi.yaml') + def test_resolve_vanity(self): + resp = self.api.ISteamUser.ResolveVanityURL(vanityurl='valve', url_type=2) + self.assertEqual(resp['response']['steamid'], '103582791429521412') + + @test_vcr.use_cassette('webapi.yaml') + def test_post_publishedfile(self): + resp = self.api.ISteamRemoteStorage.GetPublishedFileDetails(itemcount=5, publishedfileids=[1,1,1,1,1]) + self.assertEqual(resp['response']['resultcount'], 5) + + resp = self.api.ISteamUser.ResolveVanityURL(vanityurl='valve', url_type=2) + self.assertEqual(resp['response']['steamid'], '103582791429521412') diff --git a/vcr/webapi.yaml b/vcr/webapi.yaml new file mode 100644 index 0000000..e10526d --- /dev/null +++ b/vcr/webapi.yaml @@ -0,0 +1,236 @@ +interactions: +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python-steam/0.7.4 python-requests/2.9.1] + method: GET + uri: https://api.steampowered.com/ISteamWebAPIUtil/GetSupportedAPIList/v1/?format=json + response: + body: + string: !!binary | + H4sIAAAAAAAAAO09XXPbtrLPya/A9D40nVF8Y6dftzP3wbGT1DNJ7GO7pw+dDgciIQnXFMESoBWd + Tv/73V2AFOVYMj9ARU7YydS2RAKL/cZisfv30yff8FTGUptvfmF/P33y5BuZGJFNeCg0fPIHfPIE + P4YvEj4X8NE3ZydXb8+vRHYrMh389PLFNyP7/VyYmYrKt4r3Km++FeYt/OrevTLc5Nq9DU/hZ1Il + 8OBh+dnMmNSOS++/vl49nvIMxgJY7Yzu4z/dT/vjn6erz/B//4zuW8/p+fXx0XFu1JwbEV2rPEvE + Mjh68cNP/9NsccehkbeCBoAPE/MO0bqv6/vhpy9ncW94YrhuRTP36kXMlyJDlvTGkfbTctLKtG7O + d4JPc3F2Wo4Aj5hlSo/kIIYvj6rfqNQALDyGbyc81qLyVSR0mEn6Ht+9ngl4hKZgMc3BYJLi8X9G + WyADBGTmWsIfTWEyWb4FpOOEFc+yiYwBR2yiMjaXiZznc2ZgRm34PK0H5esk2iGM/GMbGEHWwpmM + NsH44/c+YeRMpyKUExkymrcmsUUmhW7Bf11h1DRxPSCtYB6HocoT8xlgTWn+Faz3q6rRZgVjF3A+ + gcEkj8+SiepfwXCLrs3s10W1uMFBpzCjWKzUDcvTLgjKlMXRPlqUplZyMCdVyAZzMpiTwZwM5mQT + vr4ac/IexYjMQZs9yqXgMeqLHdkTTfvzQBvB50ELnfMA0R+ibSusNrXTA0q3oLQNj1rvA2VOJtN+ + xW6L8L+Tt8JCgoGmHRDWOkRbSNrSkpwn8ZLpmVpYCyw0UxNmQF06SyKiwheDqet7EG14rzOg9MUa + nI3pSmx5KgyX8Q6I2hpVD4jpe0+I+BWkTGXL/hExE5nyz9to9cHaOz7BOeAXbtg814aNgaMT+qLg + p7EAjcL+ytHLq8nrU/gZzFXk26f/fSaBgDg6w9HRYcmEybOkBBbcvXog6hsZxz0glg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GGwvlgmZuBreVw13erqA4NuhxBXC192i5KsY0NMMEeLyaHKpnIew+YPE2k + Zxw3J9kSHYIe55lj3+xkw0Fub6GdSwEji1vxaBgssyck6AJ2Jkc9sX5q/3oKv/3z/9rIYSQKPQEA + headers: + connection: [keep-alive] + content-encoding: [gzip] + content-length: ['7182'] + content-type: [application/json; charset=UTF-8] + date: ['Fri, 13 May 2016 12:46:46 GMT'] + expires: ['Fri, 13 May 2016 12:46:46 GMT'] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: publishedfileids%5B2%5D=1&publishedfileids%5B3%5D=1&itemcount=5&format=json&publishedfileids%5B1%5D=1&publishedfileids%5B4%5D=1&publishedfileids%5B0%5D=1 + headers: + Accept: ['*/*'] + Accept-Encoding: [q=0] + Connection: [keep-alive] + Content-Length: ['190'] + Content-Type: [application/x-www-form-urlencoded] + User-Agent: [python-steam/0.7.4 python-requests/2.9.1] + method: POST + uri: https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1/ + response: + body: {string: !!python/unicode "{\n\t\"response\": {\n\t\t\"result\": 1,\n\t\t\ + \"resultcount\": 5,\n\t\t\"publishedfiledetails\": [\n\t\t\t{\n\t\t\t\t\"\ + publishedfileid\": \"1\",\n\t\t\t\t\"result\": 9\n\t\t\t},\n\t\t\t{\n\t\t\t\ + \t\"publishedfileid\": \"1\",\n\t\t\t\t\"result\": 9\n\t\t\t},\n\t\t\t{\n\t\ + \t\t\t\"publishedfileid\": \"1\",\n\t\t\t\t\"result\": 9\n\t\t\t},\n\t\t\t\ + {\n\t\t\t\t\"publishedfileid\": \"1\",\n\t\t\t\t\"result\": 9\n\t\t\t},\n\t\ + \t\t{\n\t\t\t\t\"publishedfileid\": \"1\",\n\t\t\t\t\"result\": 9\n\t\t\t\ + }\n\t\t]\n\t\t\n\t}\n}"} + headers: + connection: [keep-alive] + content-length: ['365'] + content-type: [application/json; charset=UTF-8] + date: ['Fri, 13 May 2016 12:46:47 GMT'] + expires: ['Fri, 13 May 2016 13:16:20 GMT'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: [q=0] + Connection: [keep-alive] + User-Agent: [python-steam/0.7.4 python-requests/2.9.1] + method: GET + uri: https://api.steampowered.com/ISteamUser/ResolveVanityURL/v1/?format=json&url_type=2&vanityurl=valve + response: + body: {string: !!python/unicode "{\n\t\"response\": {\n\t\t\"steamid\": \"103582791429521412\"\ + ,\n\t\t\"success\": 1\n\t}\n}"} + headers: + connection: [keep-alive] + content-length: ['71'] + content-type: [application/json; charset=UTF-8] + date: ['Fri, 13 May 2016 12:46:47 GMT'] + expires: ['Fri, 13 May 2016 12:46:47 GMT'] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: [q=0] + Connection: [keep-alive] + User-Agent: [python-steam/0.7.4 python-requests/2.9.1] + method: GET + uri: https://api.steampowered.com/ISteamWebAPIUtil/GetServerInfo/v1/?format=json + response: + body: {string: !!python/unicode "{\n\t\"servertime\": 1463143608,\n\t\"servertimestring\"\ + : \"Fri May 13 05:46:48 2016\"\n}"} + headers: + connection: [keep-alive] + content-length: ['78'] + content-type: [application/json; charset=UTF-8] + date: ['Fri, 13 May 2016 12:46:48 GMT'] + expires: ['Fri, 13 May 2016 12:46:48 GMT'] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: ['*/*'] + Accept-Encoding: [q=0] + Connection: [keep-alive] + User-Agent: [python-steam/0.7.4 python-requests/2.9.1] + method: GET + uri: https://api.steampowered.com/ISteamWebAPIUtil/GetServerInfo/v1/?format=vdf + response: + body: {string: !!python/unicode "\"response\"\n{\n\t\"servertime\"\t\"1463143609\"\ + \n\t\"servertimestring\"\t\"Fri May 13 05:46:49 2016\"\n}"} + headers: + connection: [keep-alive] + content-length: ['88'] + content-type: [text/vdf; charset=UTF-8] + date: ['Fri, 13 May 2016 12:46:49 GMT'] + expires: ['Fri, 13 May 2016 12:46:49 GMT'] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +version: 1 diff --git a/vcr/webapi_getserverinfo.json b/vcr/webapi_getserverinfo.json deleted file mode 100644 index 739acbc..0000000 --- a/vcr/webapi_getserverinfo.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "Connection": [ - "keep-alive" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "User-Agent": [ - "python-requests/2.7.0 CPython/2.7.10 CYGWIN_NT-10.0/2.2.0(0.289/5/3)" - ] - }, - "method": "GET", - "uri": "https://api.steampowered.com/ISteamWebAPIUtil/GetServerInfo/v1/?key=test_api_key&format=json" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 23 Aug 2015 22:58:10 GMT" - ], - "content-length": [ - "78" - ], - "expires": [ - "Sun, 23 Aug 2015 22:58:10 GMT" - ], - "content-type": [ - "application/json; charset=UTF-8" - ] - }, - "body": { - "string": "{\n\t\"servertime\": 1440370690,\n\t\"servertimestring\": \"Sun Aug 23 15:58:10 2015\"\n}" - } - } - } - ] -} diff --git a/vcr/webapi_init.json b/vcr/webapi_init.json deleted file mode 100644 index f8c2e75..0000000 --- a/vcr/webapi_init.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "Connection": [ - "keep-alive" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "User-Agent": [ - "python-requests/2.7.0 CPython/2.7.10 CYGWIN_NT-10.0/2.2.0(0.289/5/3)" - ] - }, - "method": "GET", - "uri": "https://api.steampowered.com/ISteamWebAPIUtil/GetSupportedAPIList/v1/?key=test_api_key&format=json" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 23 Aug 2015 22:58:35 GMT" - ], - "content-length": [ - "13742" - ], - "expires": [ - "Sun, 23 Aug 2015 22:58:35 GMT" - ], - "content-type": [ - "application/json; charset=UTF-8" - ] - }, - "body": { - "string": "{\n\t\"apilist\": {\n\t\t\"interfaces\": [\n\t\t\t{\n\t\t\t\t\"name\": \"IGCVersion_205790\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetClientVersion\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetServerVersion\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"IGCVersion_440\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetClientVersion\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetServerVersion\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"IGCVersion_570\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetClientVersion\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetServerVersion\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"IGCVersion_730\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetServerVersion\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"IPortal2Leaderboards_620\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetBucketizedData\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"leaderboardName\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"The leaderboard name to fetch data for.\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"IPortal2Leaderboards_841\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetBucketizedData\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"leaderboardName\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"The leaderboard name to fetch data for.\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamApps\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetAppList\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetAppList\",\n\t\t\t\t\t\t\"version\": 2,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetServersAtAddress\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"addr\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"IP or IP:queryport to list\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"UpToDateCheck\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"appid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"AppID of game\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"version\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"The installed version of the game\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamDirectory\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetCMList\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"cellid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Client's Steam cell ID\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"maxcount\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Max number of servers to return\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamEnvoy\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"PaymentOutNotification\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"PaymentOutReversalNotification\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamNews\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetNewsForApp\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"appid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"AppID to retrieve news for\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"maxlength\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Maximum length for the content to return, if this is 0 the full content is returned, if it's less then a blurb is generated to fit.\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"enddate\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Retrieve posts earlier than this date (unix epoch timestamp)\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"count\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"# of posts to retrieve (default 20)\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetNewsForApp\",\n\t\t\t\t\t\t\"version\": 2,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"appid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"AppID to retrieve news for\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"maxlength\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Maximum length for the content to return, if this is 0 the full content is returned, if it's less then a blurb is generated to fit.\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"enddate\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Retrieve posts earlier than this date (unix epoch timestamp)\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"count\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"# of posts to retrieve (default 20)\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"feeds\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Comma-seperated list of feed names to return news for\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamPayPalPaymentsHub\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"PayPalPaymentsHubPaymentNotification\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamRemoteStorage\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetCollectionDetails\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"collectioncount\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Number of collections being requested\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"publishedfileids[0]\",\n\t\t\t\t\t\t\t\t\"type\": \"uint64\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"collection ids to get the details for\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetPublishedFileDetails\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"itemcount\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Number of items being requested\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"publishedfileids[0]\",\n\t\t\t\t\t\t\t\t\"type\": \"uint64\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"published file id to look up\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamUserAuth\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"AuthenticateUser\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"steamid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint64\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Should be the users steamid, unencrypted.\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"sessionkey\",\n\t\t\t\t\t\t\t\t\"type\": \"rawbinary\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Should be a 32 byte random blob of data, which is then encrypted with RSA using the Steam system's public key. Randomness is important here for security.\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"encrypted_loginkey\",\n\t\t\t\t\t\t\t\t\"type\": \"rawbinary\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Should be the users hashed loginkey, AES encrypted with the sessionkey.\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamUserOAuth\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetTokenDetails\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"access_token\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"OAuth2 token for which to return details\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamUserStats\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetGlobalAchievementPercentagesForApp\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"gameid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint64\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"GameID to retrieve the achievement percentages for\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetGlobalAchievementPercentagesForApp\",\n\t\t\t\t\t\t\"version\": 2,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"gameid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint64\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"GameID to retrieve the achievement percentages for\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetGlobalStatsForGame\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"appid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"AppID that we're getting global stats for\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"count\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Number of stats get data for\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"name[0]\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Names of stat to get data for\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"startdate\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Start date for daily totals (unix epoch timestamp)\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"enddate\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"End date for daily totals (unix epoch timestamp)\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetNumberOfCurrentPlayers\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"appid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"AppID that we're getting user count for\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamWebAPIUtil\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetServerInfo\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"GetSupportedAPIList\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"GET\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"key\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"access key\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"ISteamWebUserPresenceOAuth\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"PollStatus\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"steamid\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Steam ID of the user\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"umqid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint64\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"UMQ Session ID\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"message\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": false,\n\t\t\t\t\t\t\t\t\"description\": \"Message that was last known to the user\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"pollid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Caller-specific poll id\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"sectimeout\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Long-poll timeout in seconds\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"secidletime\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"How many seconds is client considering itself idle, e.g. screen is off\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"use_accountids\",\n\t\t\t\t\t\t\t\t\"type\": \"uint32\",\n\t\t\t\t\t\t\t\t\"optional\": true,\n\t\t\t\t\t\t\t\t\"description\": \"Boolean, 0 (default): return steamid_from in output, 1: return accountid_from\"\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"IPlayerService\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"RecordOfflinePlaytime\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"description\": \"Tracks playtime for a user when they are offline\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"steamid\",\n\t\t\t\t\t\t\t\t\"type\": \"uint64\",\n\t\t\t\t\t\t\t\t\"optional\": false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"ticket\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"play_sessions\",\n\t\t\t\t\t\t\t\t\"type\": \"{message}\",\n\t\t\t\t\t\t\t\t\"optional\": false\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"name\": \"IAccountRecoveryService\",\n\t\t\t\t\"methods\": [\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"ReportAccountRecoveryData\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"description\": \"Send account recovery data\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"loginuser_list\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"install_config\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"shasentryfile\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"machineid\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\t\"name\": \"RetrieveAccountRecoveryData\",\n\t\t\t\t\t\t\"version\": 1,\n\t\t\t\t\t\t\"httpmethod\": \"POST\",\n\t\t\t\t\t\t\"description\": \"Send account recovery data\",\n\t\t\t\t\t\t\"parameters\": [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\"name\": \"requesthandle\",\n\t\t\t\t\t\t\t\t\"type\": \"string\",\n\t\t\t\t\t\t\t\t\"optional\": false\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t]\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t]\n\t\t\t\t\n\t\t\t}\n\t\t]\n\t\t\n\t}\n}" - } - } - } - ] -} diff --git a/vcr/webapi_resolovevanityurl.json b/vcr/webapi_resolovevanityurl.json deleted file mode 100644 index 4d474df..0000000 --- a/vcr/webapi_resolovevanityurl.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "body": null, - "headers": { - "Connection": [ - "keep-alive" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "User-Agent": [ - "python-requests/2.7.0 CPython/2.7.10 CYGWIN_NT-10.0/2.2.0(0.289/5/3)" - ] - }, - "method": "GET", - "uri": "https://api.steampowered.com/ISteamUser/ResolveVanityURL/v1/?url_type=2&vanityurl=valve&key=test_api_key&format=json" - }, - "response": { - "status": { - "message": "OK", - "code": 200 - }, - "headers": { - "date": [ - "Sun, 23 Aug 2015 22:58:21 GMT" - ], - "content-length": [ - "71" - ], - "expires": [ - "Sun, 23 Aug 2015 22:58:21 GMT" - ], - "content-type": [ - "application/json; charset=UTF-8" - ] - }, - "body": { - "string": "{\n\t\"response\": {\n\t\t\"steamid\": \"103582791429521412\",\n\t\t\"success\": 1\n\t}\n}" - } - } - } - ] -} \ No newline at end of file