getting trophy title for ps3 and vita #44
-
hello. but there are no ps3 or vita title ids. all I have is np_comminication_id, how can I get prophy info from that? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You could use the I could not since my account is only linked to a PS4. |
Beta Was this translation helpful? Give feedback.
-
You can use this code example to get all your PS3/PSVITA Trophies, Trophy titles, groups, etc... from os import getenv
from dotenv import load_dotenv
from psnawp_api import PSNAWP
from psnawp_api.models.trophies import PlatformType
load_dotenv()
def main() -> None:
psn = PSNAWP(getenv("NPSSO_CODE", "NPSSO_CODE"))
client = psn.me()
print("Trophy Titles")
trophy_titles = client.trophy_titles(limit=100)
for trophy_title in trophy_titles:
if PlatformType.PS3 in trophy_title.title_platform:
print(trophy_title.title_name, trophy_title.title_platform, trophy_title.earned_trophies, trophy_title.np_communication_id)
print("\nTrophies")
for trophy in client.trophies("NPWR05167_00", PlatformType.PS3, limit=10):
print(trophy.trophy_name)
print("\nTrophy Group Summary")
the_lego_movie_tgs = client.trophy_groups_summary("NPWR05167_00", platform=PlatformType.PS3, include_progress=True)
print(the_lego_movie_tgs)
if __name__ == "__main__":
main() The main issue is that you cannot search for PlayStation games using Search class. Since you can't find title ids using search function, you can't use But remaining methods and endpoints work fine. |
Beta Was this translation helpful? Give feedback.
You can use this code example to get all your PS3/PSVITA Trophies, Trophy titles, groups, etc...