psn-php
psn-php copied to clipboard
User profile fix
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
:
-
mutualFriendCount()
-
hasMutualFriends()
-
isCloseFriend()
-
hasFriendRequested()
-
isOnline()
-
isBlocking()
-
followerCount()
-
isFollowing()
But created a method to solve the false-postivie
return from these:
-
isOnline()
-
hasFriendRequest()
-
isCloseFriend()
Also created a UnitTest for those profile values.
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.