code-university
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

code-university

Functionality and data related to CODE University of Applied Sciences (https://code.berlin), specifically the CODE Learning Platform (https://app.code.berlin).

Tested with

Install

Install the package:

npm install code-university

Examples

// basic usage
import { LearningPlatformClient } from 'code-university';

async function main() {
  const learningPlatform = await LearningPlatformClient.fromRefreshToken(
    process.env.LEARNING_PLATFORM_REFRESH_TOKEN
  );
  const settings = await learningPlatform.getOwnSettings();

  console.log(settings);
}
main();

Retrieving a refresh token from the CODE Learning Platform

  1. Open https://app.code.berlin
  2. Open the browser devtools using Cmd + Shift + I on mac or Ctrl + Shift + I on windows
  3. Click on the Application tab
  4. On the left side of the Application tab, click Cookies > https://app.code.berlin
  5. Double-click the Value field of the cid cookie, and copy it to your clipboard.

Screenshot of the cookies tab

Package Sidebar

Install

npm i code-university

Weekly Downloads

4

Version

1.5.2

License

MIT

Unpacked Size

310 kB

Total Files

30

Last publish

Collaborators

  • linus-bolls