Skip to content

rogerleite/psn_trophies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Languages