ps-web-apis 1.9.9
Install from the command line:
Learn more about npm packages
$ npm install @spring-media/ps-web-apis@1.9.9
Install via package.json:
"@spring-media/ps-web-apis": "1.9.9"
About this version
ps-web-apis is a client side library to interface with ps services on ps supported websites.
npm install --save @spring-media/ps-web-apis
import { whoamiV1 } from "@spring-media/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");
});
npm i
npm run build