Skip to content

ps-web-apis 1.9.18

Install from the command line:
Learn more about npm packages
$ npm install @spring-media/ps-web-apis@1.9.18
Install via package.json:
"@spring-media/ps-web-apis": "1.9.18"

About this version

ps-web-apis

ps-web-apis is a client side library to interface with ps services on ps supported websites.

Installation

yarn install @spring-media/ps-web-apis

Note Also needs ps-rosetta to be present on the website:

<script type="text/javascript" src="https://rosetta.prod.ps.(welt|bild).de/ps-rosetta.js"></script>

Usage

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");
  });

Building

yarn
yarn build

Details


Assets

  • ps-web-apis-1.9.18.tgz

Download activity

  • Total downloads 397
  • Last 30 days 0
  • Last week 0
  • Today 0