Comments (6)
I just tested it too, and indeed, getting rid of the string fixed it!
Thank you so much :)
from psnawp.
Note that I tested this on several PS5 and PS4 games, with similar results
from psnawp.
I was able to query the endpoints directly thanks to my bearer token, resulting in 200 HTTP status codes. Both the trophy set and the progress set were retrieved thanks to the Postman queries as per the screenshots.
I have yet to understand what goes wrong...
from psnawp.
Can you try with the latest version of PSNAWP because it works for me.
Also, assuming if you are looking up your own trophies you can use the client class
from psnawp_api import PSNAWP
from psnawp_api.models.trophies import PlatformType
client = psn.me()
trophies = client.trophies("NPWR22810_00", PlatformType.PS5)
print(next(trophies))
This will save you some extra HTTP requests.
from psnawp.
I think I might know the issue. I switch platform type from string to Enum and passing in enum threw off the API wrapper.
default case is for PS4 so which it is why it worked. but PS5 didn't
from psnawp.
Yup, I get the same error when string is passed.
from psnawp.
Related Issues (20)
- Unsupported PlatformType HOT 3
- Support for Languages HOT 1
- N00b here ๐๏ธclient.title_stats() Question HOT 2
- search question HOT 7
- Is there any way to use this and have access to the PSN Store and add or checkout avatars? HOT 5
- download photo from messages HOT 3
- `get_groups` not working HOT 3
- Is it possible to learn all of my PSN account nickname history? HOT 1
- requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url HOT 5
- Is creation date possible? Suggestion HOT 1
- profile colour HOT 2
- Add Endpoint to remove player from Groups endpoint
- Add method to Remove friends
- Add Rate Limiter to the Library to make it more accessible
- Is the API down? HOT 1
- No more get_title_id() HOT 5
- Playstation plus 12 month membership
- All name history of the account HOT 3
- Doesn't show previous name, only current one
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psnawp.