Tustin / psn-php

A PHP wrapper for the PSN API
https://tustin.dev/psn-php/
MIT License
354 stars 73 forks source link

User profile fix #209

Closed gabetavares closed 2 years ago

gabetavares commented 2 years ago

Languages

The languages were using the property languagesUsed to pluck the languages, just a change for the new property value of languages solves the problem.

Deprecated methods

The call to endpoint 'userProfile/v1/internal/users/[accountId]/profiles' gives the response of

{
   "onlineId": "Username",
   "aboutMe": "",
   "avatars": [],
   "languages": [],
   "isPlus": true,
   "isOfficiallyVerified": false,
   "isMe": false
}

So these methods seems to be deprecated in this version, but as I'm not completely sure about this I decided to not set them as @deprecated:

But created a method to solve the false-postivie return from these:

Also created a UnitTest for those profile values.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.