Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 512 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 512 Bytes

PsnTrophies

A Ruby API for http://us.playstation.com/psn/trophies Simply parses html from PSN Public Trophies.

Installation

gem install psn_trophies

Usage

require "rubygems"
require "psn_trophies"

client = PsnTrophies::Client.new
played_games = client.trophies("valid_psn_id")  # ex. LeiteBR
played_games.map(&:title)  #=> ["Dragon Age II", "GTA IV", ... etc.]

client.trophies("invalid_psn_id")  # => raises PsnTrophies::NoUserProfileError