Method: PlayStationNetworkAPI::Trophy#trophies
- Defined in:
- lib/play_station_network_api/trophy.rb
#trophies(communication_id, trophy_group_id = nil) ⇒ Object
communication_id [String] trophy_group_id [String | Integer] => ‘default’, ‘001’, 002
61 62 63 64 65 66 67 68 69 |
# File 'lib/play_station_network_api/trophy.rb', line 61 def trophies(communication_id, trophy_group_id = nil) # BROKEN: https://m.np.playstation.net/api/trophy/v1/users/6462910331343535058/npCommunicationIds/NPWR00133_00/trophies?npServiceName=trophy # https://m.np.playstation.net/api/trophy/v1/users/6462910331343535058/npCommunicationIds/NPWR00133_00/trophyGroups/default/trophies?npServiceName=trophy get([path, 'npCommunicationIds', communication_id, 'trophyGroups', ([trophy_group_id, 'trophies'] if trophy_group_id)].flatten.compact.join('/'), query: { npServiceName: 'trophy' } ).parsed_response end |