Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.95 KB

README.md

File metadata and controls

62 lines (43 loc) · 1.95 KB

ade-planning-api

Version Downloads License

An unofficial wrapper written in TypeScript for interacting with ADE Planning API from Adesoft.

Important

This package is unofficial and in no way affiliated with Adesoft company. Use it at your own risk.

📥 Downloads

You can install the ade-planning-api package via npm. Simply run the following command :

npm install ade-planning-api

⚙️ Uses

Retrieve projects

import { ADEPlanningAPI } from 'ade-planning-api';

const main = async () => {
    const api = new ADEPlanningAPI("https://example.com");

    await api.initializeSession({ username: "username", password: "password" });

    const projects = await api.getProjects(); // Get all projects

    console.log(projects);

};

main();

Retrieve events at a specified Date

import { ADEPlanningAPI } from 'ade-planning-api';

export const main = async () => {
    const api = new ADEPlanningAPI("https://example.com");

    await api.initializeSession({ username: "username", password: "password" });

    const projets = await api.getProjects(); // Get all projects
    await api.setProject(projets[0]); // Set to the first project

    const events = await api.getEvents({ date: "1/19/2025", detail: 8 }); // Get all events for a specific date

    console.log(events);
};

main();

🙏 Acknowledgement

Many thanks to s-celles for documenting ADE Planning's internal API in the pyade package.

📜 License

This project is distribued under the GPL-3.0 license.