Git Product home page Git Product logo

playstationsharp's Introduction

PlayStationSharp

A C# library for the PlayStation API.

Usage

Notice: The PlayStation.TestApp project provides a more real life application of this library. You can use that as a reference if you so choose.

Due to changes to Sony's login system, you can no longer login with a username and password directly. Instead, this library utilizes their own login form and displays that to the user in a new form when called. This is how you can login using this library.

Logging in

using PlayStationSharp.API;

// Spawns a new Windows form with Sony's login form.
var account = Auth.CreateLogin();

// Will return null if form was closed manually.
if (account == null) return;

// 'account' variable now contains an instance of the user's account.

playstationsharp's People

Contributors

chowarth avatar tustin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

playstationsharp's Issues

Unable to query game trophy list

Calling Trophies.GetGameTrophies( gameContentId ) always results in a null trophy list.

There are no exceptions thrown and no error messages returned so it's not clear as to what has actually failed.

Login Button dont work and freezes Application

When I want to login and click the "Login with PlayStation" button The Application Freezes and does absolutly nothing.

When i want to close it i must kill it with the TaskManager because even the close button does nt work.

And what i also want to mention is that the background Image button is also not working fore me and it gives my an no object Referenced Exception.

Question about the application configuration

Hello,

First of all thank you for your efforts, it's a very useful project! :-)

Can I ask you a question regarding your app? In code I saw hardcoded client id, client secret, etc. Do you know where I can get my own copy of those? Just can't see any info on PS site.

Thanks in advance!

Unable to reference dll in a Xamarin.Forms project

Because of the use of HttpUtility.UrlDecode within NPGrantCodeRequest the dll produced by the project cannot be referenced within a Xamarin.Forms PCL project. It does however have access to the WebUtility class which also contains a UrlDecode method.

I suggest the change to make NPGrantCodeRequest use WebUtility.UrlDecode instead, so that the dependency on System.Web is removed and the dll can be referenced in a Xamarin.Forms PCL project.

Ideally, it would preferable to have the project as either a PCL or .NET Standard project, but I think that's a separate (and much larger) issue.

Get played history

Whether there is an api,can get how long the account play the game?

GetFriends() fuction: offline and all friends issue.

Hello again, I tried this csharp api today and it works nicely. But I'm confused with the GetFriends() function in PSN/API/Account.cs. I use this part to get the friends info like this:

System.Collections.Generic.List<User> account_friends = account.GetFriends("online", 200);
foreach (User friend in account_friends)
        {
            Console.WriteLine("Friend ID: "+friend.Profile.onlineId + " isOnline ?: "+friend.Profile.primaryOnlineStatus);
        }

it works fine when online friends info is checked.
In the code there's comment like this:
/// <param name="filter">A filter to grab online, offline or all friends. Defaults to online.</param>
so then I replace "online" with "offline" and "all", but it gives error both.
What keywords should I use to get all friends info or offline frends info?
Thanks.

Request games and trophies from userId without auth

Hi!

Can I use your endpoint or any endpoint to check an userId games and trophies without need of authentication?

EDIT:
I just do some testing in My Play Station and find out I need to send a token from postman.

So, I change my query:

I want to get all the games with their trophies if I send the PSNID. Is there any way I can accomplish that? Any enlightment you have about it?

Thanks!

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.