steam_web_api 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +19 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +15 -0
  5. data/Gemfile +6 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.html +1134 -0
  8. data/README.md +356 -0
  9. data/Rakefile +11 -0
  10. data/lib/steam_web_api/base.rb +39 -0
  11. data/lib/steam_web_api/configuration.rb +9 -0
  12. data/lib/steam_web_api/game.rb +37 -0
  13. data/lib/steam_web_api/player.rb +108 -0
  14. data/lib/steam_web_api/version.rb +3 -0
  15. data/lib/steam_web_api.rb +29 -0
  16. data/spec/fixtures/vcr/game_achievement_percentages.yml +624 -0
  17. data/spec/fixtures/vcr/game_achievement_percentages_error.yml +37 -0
  18. data/spec/fixtures/vcr/game_news_error.yml +37 -0
  19. data/spec/fixtures/vcr/game_news_success.yml +96 -0
  20. data/spec/fixtures/vcr/game_schema.yml +3538 -0
  21. data/spec/fixtures/vcr/player_achievements.yml +91 -0
  22. data/spec/fixtures/vcr/player_achievements_empty.yml +35 -0
  23. data/spec/fixtures/vcr/player_bans.yml +38 -0
  24. data/spec/fixtures/vcr/player_bans_error.yml +37 -0
  25. data/spec/fixtures/vcr/player_friends.yml +51 -0
  26. data/spec/fixtures/vcr/player_friends_error.yml +44 -0
  27. data/spec/fixtures/vcr/player_owned_games.yml +82 -0
  28. data/spec/fixtures/vcr/player_owned_games_appinfo.yml +291 -0
  29. data/spec/fixtures/vcr/player_playing_shared_game.yml +36 -0
  30. data/spec/fixtures/vcr/player_playing_shared_game_error.yml +44 -0
  31. data/spec/fixtures/vcr/player_recently_played_games.yml +48 -0
  32. data/spec/fixtures/vcr/player_recently_played_games_error.yml +44 -0
  33. data/spec/fixtures/vcr/player_recently_played_games_with_count.yml +42 -0
  34. data/spec/fixtures/vcr/player_single_bans.yml +36 -0
  35. data/spec/fixtures/vcr/player_single_bans_error.yml +37 -0
  36. data/spec/fixtures/vcr/player_single_summary.yml +43 -0
  37. data/spec/fixtures/vcr/player_single_summary_error.yml +37 -0
  38. data/spec/fixtures/vcr/player_summary.yml +51 -0
  39. data/spec/fixtures/vcr/player_summary_error.yml +37 -0
  40. data/spec/fixtures/vcr/stats_for_game.yml +321 -0
  41. data/spec/fixtures/vcr/stats_for_game_empty.yml +37 -0
  42. data/spec/spec_helper.rb +45 -0
  43. data/spec/steam_web_api/base_spec.rb +94 -0
  44. data/spec/steam_web_api/configuration_spec.rb +16 -0
  45. data/spec/steam_web_api/game_spec.rb +137 -0
  46. data/spec/steam_web_api/player_spec.rb +362 -0
  47. data/spec/steam_web_api_spec.rb +18 -0
  48. data/steam_web_api.gemspec +30 -0
  49. metadata +235 -0
@@ -0,0 +1,91 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.steampowered.com/ISteamUserStats/GetPlayerAchievements/v0001?appid=232050&format=json&key=<API_KEY>&steamid=76561198046174695
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Tue, 06 Jan 2015 08:44:19 GMT
23
+ Expires:
24
+ - Tue, 06 Jan 2015 08:49:19 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Content-Length:
28
+ - '4225'
29
+ body:
30
+ encoding: UTF-8
31
+ string: "{\n\t\"playerstats\": {\n\t\t\"steamID\": \"76561198046174695\",\n\t\t\"gameName\":
32
+ \"Eador. Masters of the Broken World\",\n\t\t\"achievements\": [\n\t\t\t{\n\t\t\t\t\"apiname\":
33
+ \"SNOWBIRDS_ACHIEVEMENT_5115\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
34
+ \"SNOWBIRDS_ACHIEVEMENT_5CD5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
35
+ \"SNOWBIRDS_ACHIEVEMENT_5405\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
36
+ \"SNOWBIRDS_ACHIEVEMENT_5965\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
37
+ \"SNOWBIRDS_ACHIEVEMENT_5985\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
38
+ \"SNOWBIRDS_ACHIEVEMENT_5605\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
39
+ \"SNOWBIRDS_ACHIEVEMENT_54D5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
40
+ \"SNOWBIRDS_ACHIEVEMENT_5915\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
41
+ \"SNOWBIRDS_ACHIEVEMENT_5B95\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
42
+ \"SNOWBIRDS_ACHIEVEMENT_50D5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
43
+ \"SNOWBIRDS_ACHIEVEMENT_57F5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
44
+ \"SNOWBIRDS_ACHIEVEMENT_56C5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
45
+ \"SNOWBIRDS_ACHIEVEMENT_5025\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
46
+ \"SNOWBIRDS_ACHIEVEMENT_5155\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
47
+ \"SNOWBIRDS_ACHIEVEMENT_57C5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
48
+ \"SNOWBIRDS_ACHIEVEMENT_57E5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
49
+ \"SNOWBIRDS_ACHIEVEMENT_5075\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
50
+ \"SNOWBIRDS_ACHIEVEMENT_5485\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
51
+ \"SNOWBIRDS_ACHIEVEMENT_5795\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
52
+ \"SNOWBIRDS_ACHIEVEMENT_5085\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
53
+ \"SNOWBIRDS_ACHIEVEMENT_5FB5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
54
+ \"SNOWBIRDS_ACHIEVEMENT_5BC5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
55
+ \"SNOWBIRDS_ACHIEVEMENT_5B75\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
56
+ \"SNOWBIRDS_ACHIEVEMENT_5CE5\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
57
+ \"SNOWBIRDS_ACHIEVEMENT_5D35\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
58
+ \"SNOWBIRDS_ACHIEVEMENT_5325\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
59
+ \"SNOWBIRDS_ACHIEVEMENT_5875\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
60
+ \"SNOWBIRDS_ACHIEVEMENT_5E65\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
61
+ \"SNOWBIRDS_ACHIEVEMENT_5F05\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
62
+ \"SNOWBIRDS_ACHIEVEMENT_5A75\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
63
+ \"SNOWBIRDS_ACHIEVEMENT_54A5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
64
+ \"SNOWBIRDS_ACHIEVEMENT_5595\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
65
+ \"SNOWBIRDS_ACHIEVEMENT_5BE5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
66
+ \"SNOWBIRDS_ACHIEVEMENT_5865\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
67
+ \"SNOWBIRDS_ACHIEVEMENT_5705\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
68
+ \"SNOWBIRDS_ACHIEVEMENT_51F5\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
69
+ \"SNOWBIRDS_ACHIEVEMENT_5315\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
70
+ \"SNOWBIRDS_ACHIEVEMENT_50A5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
71
+ \"SNOWBIRDS_ACHIEVEMENT_5385\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
72
+ \"SNOWBIRDS_ACHIEVEMENT_57D5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
73
+ \"SNOWBIRDS_ACHIEVEMENT_5D55\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
74
+ \"SNOWBIRDS_ACHIEVEMENT_53C5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
75
+ \"SNOWBIRDS_ACHIEVEMENT_5935\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
76
+ \"SNOWBIRDS_ACHIEVEMENT_53D5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
77
+ \"SNOWBIRDS_ACHIEVEMENT_59E5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
78
+ \"SNOWBIRDS_ACHIEVEMENT_5895\",\n\t\t\t\t\"achieved\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
79
+ \"SNOWBIRDS_ACHIEVEMENT_5855\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
80
+ \"SNOWBIRDS_ACHIEVEMENT_5A25\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
81
+ \"SNOWBIRDS_ACHIEVEMENT_5C65\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
82
+ \"SNOWBIRDS_ACHIEVEMENT_57A5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
83
+ \"SNOWBIRDS_ACHIEVEMENT_55A5\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
84
+ \"SNOWBIRDS_ACHIEVEMENT_5035\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
85
+ \"SNOWBIRDS_ACHIEVEMENT_5E35\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
86
+ \"SNOWBIRDS_ACHIEVEMENT_5F95\",\n\t\t\t\t\"achieved\": 1\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"apiname\":
87
+ \"SNOWBIRDS_ACHIEVEMENT_5975\",\n\t\t\t\t\"achieved\": 1\n\t\t\t}\n\t\t]\n\t\t,\n\t\t\"success\":
88
+ true\n\t}\n}"
89
+ http_version:
90
+ recorded_at: Tue, 06 Jan 2015 08:44:20 GMT
91
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,35 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.steampowered.com/ISteamUserStats/GetPlayerAchievements/v0001?appid=4760&format=json&key=<API_KEY>&steamid=76561198046174695
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 400
19
+ message: Bad Request
20
+ headers:
21
+ Date:
22
+ - Tue, 06 Jan 2015 08:45:30 GMT
23
+ Expires:
24
+ - Tue, 06 Jan 2015 08:45:30 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Content-Length:
28
+ - '84'
29
+ body:
30
+ encoding: UTF-8
31
+ string: "{\n\t\"playerstats\": {\n\t\t\"error\": \"Requested app has no stats\",\n\t\t\"success\":
32
+ false\n\t}\n}"
33
+ http_version:
34
+ recorded_at: Tue, 06 Jan 2015 08:45:30 GMT
35
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,38 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.steampowered.com/ISteamUser/GetPlayerBans/v1?key=<API_KEY>&steamids=76561198046174695,76561197960435530
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sat, 17 Jan 2015 09:02:15 GMT
23
+ Expires:
24
+ - Sat, 17 Jan 2015 09:02:15 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Content-Length:
28
+ - '363'
29
+ body:
30
+ encoding: UTF-8
31
+ string: "{\n\t\"players\": [\n\t\t{\n\t\t\t\"SteamId\": \"76561198046174695\",\n\t\t\t\"CommunityBanned\":
32
+ false,\n\t\t\t\"VACBanned\": false,\n\t\t\t\"NumberOfVACBans\": 0,\n\t\t\t\"DaysSinceLastBan\":
33
+ 0,\n\t\t\t\"EconomyBan\": \"none\"\n\t\t},\n\t\t{\n\t\t\t\"SteamId\": \"76561197960435530\",\n\t\t\t\"CommunityBanned\":
34
+ false,\n\t\t\t\"VACBanned\": false,\n\t\t\t\"NumberOfVACBans\": 0,\n\t\t\t\"DaysSinceLastBan\":
35
+ 0,\n\t\t\t\"EconomyBan\": \"none\"\n\t\t}\n\t]\n\t\n}"
36
+ http_version:
37
+ recorded_at: Sat, 17 Jan 2015 09:02:15 GMT
38
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,37 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.steampowered.com/ISteamUser/GetPlayerBans/v1?key=invalid&steamids=76561198046174695,76561197960435530
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 403
19
+ message: Forbidden
20
+ headers:
21
+ Content-Length:
22
+ - '168'
23
+ Content-Type:
24
+ - text/html; charset=UTF-8
25
+ Date:
26
+ - Sat, 17 Jan 2015 09:06:04 GMT
27
+ Expires:
28
+ - Mon, 26 Jul 1997 05:00:00 GMT
29
+ Cache-Control:
30
+ - no-cache,must-revalidate
31
+ body:
32
+ encoding: UTF-8
33
+ string: "<html><head><title>Forbidden</title></head><body><h1>Forbidden</h1>Access
34
+ is denied. Retrying will not help. Please verify your <pre>key=</pre> parameter.</body></html>"
35
+ http_version:
36
+ recorded_at: Sat, 17 Jan 2015 09:06:04 GMT
37
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.steampowered.com/ISteamUser/GetFriendList/v0001?format=json&key=<API_KEY>&relationship=all&steamid=76561198046174695
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sat, 17 Jan 2015 06:15:54 GMT
23
+ Expires:
24
+ - Sat, 17 Jan 2015 06:15:54 GMT
25
+ Content-Type:
26
+ - application/json; charset=UTF-8
27
+ Content-Length:
28
+ - '1233'
29
+ body:
30
+ encoding: UTF-8
31
+ string: "{\n\t\"friendslist\": {\n\t\t\"friends\": [\n\t\t\t{\n\t\t\t\t\"steamid\":
32
+ \"76561197968589933\",\n\t\t\t\t\"relationship\": \"friend\",\n\t\t\t\t\"friend_since\":
33
+ 1397319937\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\": \"76561198036812480\",\n\t\t\t\t\"relationship\":
34
+ \"friend\",\n\t\t\t\t\"friend_since\": 1359731326\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\":
35
+ \"76561198044253377\",\n\t\t\t\t\"relationship\": \"friend\",\n\t\t\t\t\"friend_since\":
36
+ 1332186936\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\": \"76561198047048666\",\n\t\t\t\t\"relationship\":
37
+ \"friend\",\n\t\t\t\t\"friend_since\": 1381777255\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\":
38
+ \"76561198057629417\",\n\t\t\t\t\"relationship\": \"friend\",\n\t\t\t\t\"friend_since\":
39
+ 1327516246\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\": \"76561198073945021\",\n\t\t\t\t\"relationship\":
40
+ \"friend\",\n\t\t\t\t\"friend_since\": 1351016785\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\":
41
+ \"76561198074051952\",\n\t\t\t\t\"relationship\": \"friend\",\n\t\t\t\t\"friend_since\":
42
+ 1359392188\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\": \"76561198080110616\",\n\t\t\t\t\"relationship\":
43
+ \"friend\",\n\t\t\t\t\"friend_since\": 1408385608\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\":
44
+ \"76561198080150503\",\n\t\t\t\t\"relationship\": \"friend\",\n\t\t\t\t\"friend_since\":
45
+ 1383327768\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\": \"76561198093098808\",\n\t\t\t\t\"relationship\":
46
+ \"friend\",\n\t\t\t\t\"friend_since\": 1385661956\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"steamid\":
47
+ \"76561198108140491\",\n\t\t\t\t\"relationship\": \"friend\",\n\t\t\t\t\"friend_since\":
48
+ 1381247912\n\t\t\t}\n\t\t]\n\t\t\n\t}\n}"
49
+ http_version:
50
+ recorded_at: Sat, 17 Jan 2015 06:15:54 GMT
51
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.steampowered.com/ISteamUser/GetFriendList/v0001?format=json&key=<API_KEY>&relationship=all&steamid=aaa
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 500
19
+ message: Internal Server Error
20
+ headers:
21
+ Content-Length:
22
+ - '116'
23
+ Content-Type:
24
+ - text/html; charset=UTF-8
25
+ Date:
26
+ - Sat, 17 Jan 2015 06:20:25 GMT
27
+ Expires:
28
+ - Mon, 26 Jul 1997 05:00:00 GMT
29
+ Cache-Control:
30
+ - no-cache,must-revalidate
31
+ body:
32
+ encoding: UTF-8
33
+ string: |-
34
+ <html>
35
+ <head>
36
+ <title>500 Internal Server Error</title>
37
+ </head>
38
+ <body>
39
+ <h1>Internal Server Error</h1>
40
+ </body>
41
+ </html>
42
+ http_version:
43
+ recorded_at: Sat, 17 Jan 2015 06:20:25 GMT
44
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,82 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001?format=json&key=<API_KEY>&steamid=76561198046174695
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ X-Eresult:
22
+ - '1'
23
+ Date:
24
+ - Tue, 06 Jan 2015 08:06:41 GMT
25
+ Expires:
26
+ - Tue, 06 Jan 2015 08:06:41 GMT
27
+ Content-Type:
28
+ - application/json; charset=UTF-8
29
+ Content-Length:
30
+ - '2872'
31
+ body:
32
+ encoding: UTF-8
33
+ string: "{\n\t\"response\": {\n\t\t\"game_count\": 45,\n\t\t\"games\": [\n\t\t\t{\n\t\t\t\t\"appid\":
34
+ 4760,\n\t\t\t\t\"playtime_forever\": 53\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
35
+ 7830,\n\t\t\t\t\"playtime_forever\": 67\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
36
+ 25890,\n\t\t\t\t\"playtime_forever\": 18580\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
37
+ 34030,\n\t\t\t\t\"playtime_forever\": 11805\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
38
+ 58510,\n\t\t\t\t\"playtime_forever\": 112\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
39
+ 22100,\n\t\t\t\t\"playtime_forever\": 475\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
40
+ 48700,\n\t\t\t\t\"playtime_forever\": 7200\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
41
+ 48720,\n\t\t\t\t\"playtime_forever\": 18993\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
42
+ 105400,\n\t\t\t\t\"playtime_forever\": 412\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
43
+ 73190,\n\t\t\t\t\"playtime_forever\": 81\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
44
+ 49470,\n\t\t\t\t\"playtime_forever\": 712\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
45
+ 58550,\n\t\t\t\t\"playtime_forever\": 280\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
46
+ 72850,\n\t\t\t\t\"playtime_forever\": 15093\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
47
+ 2810,\n\t\t\t\t\"playtime_forever\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
48
+ 2820,\n\t\t\t\t\"playtime_forever\": 544\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
49
+ 201310,\n\t\t\t\t\"playtime_forever\": 4\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
50
+ 203770,\n\t\t\t\t\"playtime_forever\": 51405\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
51
+ 208400,\n\t\t\t\t\"playtime_2weeks\": 64,\n\t\t\t\t\"playtime_forever\": 1197\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
52
+ 203630,\n\t\t\t\t\"playtime_forever\": 8260\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
53
+ 208730,\n\t\t\t\t\"playtime_forever\": 1362\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
54
+ 57650,\n\t\t\t\t\"playtime_forever\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
55
+ 200550,\n\t\t\t\t\"playtime_forever\": 332\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
56
+ 208140,\n\t\t\t\t\"playtime_forever\": 10113\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
57
+ 48220,\n\t\t\t\t\"playtime_forever\": 10289\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
58
+ 205790,\n\t\t\t\t\"playtime_forever\": 7\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
59
+ 216890,\n\t\t\t\t\"playtime_2weeks\": 7,\n\t\t\t\t\"playtime_forever\": 7203\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
60
+ 200510,\n\t\t\t\t\"playtime_forever\": 8886\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
61
+ 212500,\n\t\t\t\t\"playtime_forever\": 37\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
62
+ 238960,\n\t\t\t\t\"playtime_forever\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
63
+ 256410,\n\t\t\t\t\"playtime_2weeks\": 1,\n\t\t\t\t\"playtime_forever\": 76\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
64
+ 8930,\n\t\t\t\t\"playtime_forever\": 40501\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
65
+ 232050,\n\t\t\t\t\"playtime_forever\": 29473\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
66
+ 232750,\n\t\t\t\t\"playtime_forever\": 591\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
67
+ 242920,\n\t\t\t\t\"playtime_forever\": 1143\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
68
+ 201420,\n\t\t\t\t\"playtime_forever\": 74\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
69
+ 237530,\n\t\t\t\t\"playtime_forever\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
70
+ 43110,\n\t\t\t\t\"playtime_forever\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
71
+ 43160,\n\t\t\t\t\"playtime_forever\": 350\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
72
+ 236850,\n\t\t\t\t\"playtime_forever\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
73
+ 214950,\n\t\t\t\t\"playtime_2weeks\": 5053,\n\t\t\t\t\"playtime_forever\":
74
+ 10063\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\": 205990,\n\t\t\t\t\"playtime_2weeks\":
75
+ 2557,\n\t\t\t\t\"playtime_forever\": 7798\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
76
+ 236130,\n\t\t\t\t\"playtime_forever\": 0\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
77
+ 291450,\n\t\t\t\t\"playtime_forever\": 5\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
78
+ 305390,\n\t\t\t\t\"playtime_forever\": 46\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"appid\":
79
+ 227700,\n\t\t\t\t\"playtime_forever\": 0\n\t\t\t}\n\t\t]\n\t\t\n\t}\n}"
80
+ http_version:
81
+ recorded_at: Tue, 06 Jan 2015 08:06:41 GMT
82
+ recorded_with: VCR 2.9.3