Git Product home page Git Product logo

www-psn's Introduction

NAME

WWW::PSN - Perl Module for fetching PSN profile and trophy data.

VERSION

version 0.02

SYNOPSIS

use WWW::PSN;
my $profile = profile('hajimuc'); # replace hajimuc with your PSN ID.
print "Current Level: $profile->{'curLevel'}\n";

# print all the titles
my $detailed_trophies = trophies('hajimuc');
for my $t ( @{$detailed_trophies->{list}} ) {
    print encode('utf-8',$t->{title}), "\n";
}

DESCRIPTION

WWW::PSN is Perl Module for fetching PSN profile and trophy data.

METHODS

profile($psn_id)

User profile including overall trophy progress and numbers.

{
   "isPlusUser" : "1",
   "curLevel" : "4",
   "handle" : "hajimuc",
   "progress" : "90",
   "avatarUrl" : "//static-resource.np.community.playstation.net/avatar_m/WWS_J/J0003_m.png",
   "trophies" : {
      "bronze" : "98",
      "silver" : "15",
      "gold" : "4",
      "platinum" : "0"
   },
   "totalLevel" : ""
}

trophies($psn_id)

Detailed trophies data.

{
   "overallprogress" : "90",
   "isPlusUser" : "1",
   "avatarUrl" : "//static-resource.np.community.playstation.net/avatar_m/WWS_J/J0003_m.png",
   "handle" : "hajimuc",
   "curLevel" : "4",
   "totalResults" : "15",
   "list" : [
      {
         "title" : "Far Cry® Primal",
         "imgUrl" : "//trophy01.np.community.playstation.net/trophy/np/NPWR09687_00_0090890723F98AD458C3F4EC288C1888A48F880D21/08B0C827B453E9D45ED0DCBE0CB6FFA59BFFD53E.PNG",
         "progress" : 85,
         "platform" : "ps4",
         "gameId" : "NPWR09687_00",
         "trophies" : {
            "silver" : 9,
            "bronze" : 30,
            "gold" : 2,
            "platinum" : 0
         }
      }
    ]
}

AUTHOR

Zhu Sheng Li [email protected]

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016 by Zhu Sheng Li.

This is free software, licensed under:

The MIT (X11) License

www-psn's People

Contributors

digglife avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.