class PlayStationNetworkAPI::Game
Public Instance Methods
games(offset: 0, limit: 10)
click to toggle source
COMMENT: Pretty much the same endpoint as [titles], except it gives a lot less data and there's no conceptId information
@private false offset [Integer] limit [Integer] {
min: 1, max: 300
}
# File lib/play_station_network_api/game.rb, line 37 def games(offset: 0, limit: 10) raise 'limit must be less than or equal to 300' if limit > 300 # https://m.np.playstation.net/api/gamelist/v3/users/6462910331343535058/profile/games?limit=300&offset=0 get([path(version: 3), account_id, 'profile', 'games'].join('/'), query: { offset: offset, limit: limit } ).parsed_response end
title(title_id)
click to toggle source
@private false title_id [String]
# File lib/play_station_network_api/game.rb, line 24 def title(title_id) # https://m.np.playstation.net/api/gamelist/v2/users/6462910331343535058/titles/CUSA00938_00 get([path, account_id, 'titles', title_id].join('/')).parsed_response end
titles(offset: 0, limit: 10)
click to toggle source
@private false offset [Integer] limit [Integer] {
min: 1, max: 300
}
# File lib/play_station_network_api/game.rb, line 10 def titles(offset: 0, limit: 10) raise 'limit must be less than or equal to 300' if limit > 300 # https://m.np.playstation.net/api/gamelist/v2/users/6462910331343535058/titles?limit=300&offset=0 get([path, account_id, 'titles'].join('/'), query: { offset: offset, limit: limit } ).parsed_response end
Private Instance Methods
path(version: 2, resource: 'users')
click to toggle source
# File lib/play_station_network_api/game.rb, line 51 def path(version: 2, resource: 'users') "/gamelist/v#{ version }/#{ resource }/" end