https://github.com/spring-media/ps-web-apis
This project provides web apis needed to interact with premium services applications
https://github.com/spring-media/ps-web-apis
ps
Last synced: 5 months ago
JSON representation
This project provides web apis needed to interact with premium services applications
- Host: GitHub
- URL: https://github.com/spring-media/ps-web-apis
- Owner: spring-media
- Created: 2019-03-01T10:22:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-09-01T07:57:25.000Z (10 months ago)
- Last Synced: 2025-09-01T09:55:22.931Z (10 months ago)
- Topics: ps
- Language: TypeScript
- Homepage:
- Size: 424 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ps-web-apis
ps-web-apis is a client side library to interface with ps services on ps supported websites.
The possible use cases are documented here:
https://github.com/spring-media/ps-public-integration
Please use public-integration to implement your use case. If it is not listed there or the documentation is not understandable / complete, please contact the team premium services for assistance.
# Installation
`yarn install @axelspringer/ps-web-apis`
> **Note** Also needs [ps-rosetta](https://github.com/spring-media/ps-rosetta) to be present on the website:
```html
```
# Basic Usage
```javascript
import { whoamiV1 } from "@axelspringer/ps-web-apis";
whoamiV1()
.then((whoami) => {
console.log(
`user login status: ${whoami.isLoggedIn() ? "logged in" : "logged out"}`
);
})
.catch(() => {
console.error("handle unavilability of whoami api");
});
```
# Building
```
yarn
yarn build
```