Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Added more information to profiledata request #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions psn.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var
SignIN: psnVars.SENBaseURL + '/2.0/oauth/authorize?response_type=code&service_entity='+psnVars.service_entity+'&returnAuthCode=true&state='+psnVars.state+'&redirect_uri='+psnVars.redirectURL_oauth+'&client_id='+psnVars.client_id+'&scope='+psnVars.scope_psn // New SEN login page (no csrfToken this time)
,SignINPOST: psnVars.SENBaseURL + '/login.do' // POST DATA for login must be sended here
,oauth: 'https://auth.api.sonyentertainmentnetwork.com/2.0/oauth/token' // PSN's OAuth implementation Uri
,profileData: 'https://{{region}}-prof.np.community.playstation.net/userProfile/v1/users/{{id}}/profile?fields=%40default,relation,requestMessageFlag,presence,%40personalDetail,trophySummary'
,profileData: 'https://{{region}}-prof.np.community.playstation.net/userProfile/v1/users/{{id}}/profile2?fields=npId%2ConlineId%2CavatarUrls%2Cplus%2CaboutMe%2ClanguagesUsed%2CtrophySummary(%40default%2Cprogress%2CearnedTrophies)%2CisOfficiallyVerified%2CpersonalDetail(%40default%2CprofilePictureUrls)%2CpersonalDetailSharing%2CpersonalDetailSharingRequestMessageFlag%2CprimaryOnlineStatus%2Cpresences(%40titleInfo%2ChasBroadcastData)%2CfriendRelation%2CrequestMessageFlag%2Cblocking%2CmutualFriendsCount%2Cfollowing%2CfollowerCount%2CfriendsCount%2CfollowingUsersCount&avatarSizes=m%2Cxl&profilePictureSizes=m%2Cxl&languagesUsedLanguageSet=set3&psVitaTitleIcon=circled&titleIconSize=s'
,trophyData: 'https://{{region}}-tpy.np.community.playstation.net/trophy/v1/trophyTitles?fields=%40default&npLanguage={{lang}}&iconSize={{iconsize}}&platform=PS3%2CPSVITA%2CPS4&offset={{offset}}&limit={{limit}}&comparedUser={{id}}' // NOTE: All server are in the US, the only change are market restrictions
,trophyDataList:'https://{{region}}-tpy.np.community.playstation.net/trophy/v1/trophyTitles/{{npCommunicationId}}/trophyGroups/{{groupId}}/trophies?fields=%40default,trophyRare,trophyEarnedRate&npLanguage={{lang}}'
,trophyGroupList:'https://{{region}}-tpy.np.community.playstation.net/trophy/v1/trophyTitles/{{npCommunicationId}}/trophyGroups/?npLanguage={{lang}}'
Expand Down Expand Up @@ -459,4 +459,4 @@ function psnGETRequestDEBUG (url, callback) {
}
exports.GET = function (url, callback) {
psnGETRequestDEBUG(url, callback);
}
}