psnawp_api.core package
Submodules
psnawp_api.core.authenticator module
- class Authenticator(npsso_cookie: str)[source]
Bases:
objectProvides an interface for PSN Authentication.
- __init__(npsso_cookie: str)[source]
Represents a single authentication to PSN API.
- Parameters
npsso_cookie – npsso cookie obtained from PSN website.
- Raises
PSNAWPAuthenticationErrorIf npsso code is expired or is incorrect.
psnawp_api.core.psnawp_exceptions module
- exception PSNAWPAuthenticationError[source]
Bases:
PSNAWPExceptionException for authentication related errors.
- exception PSNAWPBadRequest[source]
Bases:
PSNAWPExceptionException raised if bad request is made to the endpoint.
- exception PSNAWPIllegalArgumentError[source]
Bases:
PSNAWPExceptionException raised if user gave wrong input to a function.
- exception PSNAWPUnauthorized[source]
Bases:
PSNAWPExceptionException for accessing an action is not allowed due to missing the right authorization.
- exception PSNAWPForbidden[source]
Bases:
PSNAWPExceptionException for accessing an action is not allowed due to insufficient rights to a resource.
- exception PSNAWPNotFound[source]
Bases:
PSNAWPExceptionException raised if resource not found.
- exception PSNAWPNotAllowed[source]
Bases:
PSNAWPExceptionException raised if resource doesn’t support this method.
- exception PSNAWPServerError[source]
Bases:
PSNAWPExceptionException raised if there is a problem at the server.