npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

24fire-api

v1.0.8

Published

Nutze die 24fire api in Nodejs, sicher und schnell

Downloads

19

Readme

POWERED BY 24FIRE

24fire-api

Die 24fire-api soll die Interaktion mit der 24fire Kunden Api vereinfachen und verbessern.

Features

  • 🔗 Kommunikation über SSL
  • 🏃 Schnelle interaktion
  • ➡️ Direkte Anfragen ohne Middelware
  • ℹ️ Einfache Bedienung
  • 🆕 Neuste Version

Optimierungen & Feedback

Welche Optimierungen hast du in deinem Code vorgenommen? Z.B. Refactoring, Performance-Verbesserungen

Wenn du Feedback hast, wenden dich an mich unter [email protected]

Author & Credits

  • Flostechnikwelt
  • Lars.1309

Empfehlenswert

Wie wird es installiert?

Um die 24fire-api in deinem Projekt zu installieren, führe bitte den folgenden Befehl aus

  npm install 24fire-api

Wie bekomme ich einen API Key?

Jeder Kunde hat die möglichkeit für seine VM einen API-Key zu bekommen.

1. Wähle deinen Server aus

Bild1

2. Öffne das Menu durch den Buttn mit den drei Strichen

Bild2

3. Klicke auf "API-Key anzeigen"

Bild3

4. Nun sollte dieses Modal erscheinen, hier kannst du den API-Key kopieren

Bild4## Wie verwende ich fireapi-24fire?

Einen fireApi Client erstellen

  const fireApi = require("24fire-api")
  const apiKey = 'DEIN_API_SCHLÜSSEL';
  const myFireApi = new fireApi(apiKey);

VM

-> Zeige die VM Konfiguration an

  myFireApi.vm().getVMconfig().then(data => {
    console.log('VM config:', data);
  }).catch(error => {
    console.error('Fehler:', error);
  });

-> Den aktuellen VM Status Abrufen

  myFireApi.vm().getVMstatus().then(data => {
    console.log('Aktueller VM Status:', data);
  }).catch(error => {
    console.error('Fehler:', error);
  });

-> Die VM Starten

  myFireApi.vm().startVM().then(data => {
    console.log('Antwort: ', data);
  }).catch(error => {
    console.error('Fehler: ', error);
  });

-> Die VM herunterfahren

  myFireApi.vm().stopVM().then(data => {
    console.log('Antwort: ', data);
  }).catch(error => {
    console.error('Fehler: ', error);
  });

-> Die VM neustarten

  myFireApi.vm().restartVM().then(data => {
    console.log('Antwort:', data);
  }).catch(error => {
    console.error('Fehler:', error);
  });

Backup

-> Alle Backups auflisten

  myFireApi.backup().listBackups().then(data => {
    console.log('Backup List:', data);
  }).catch(error => {
    console.error('Fehler:', error);
  });

-> Ein neues Backup erstellen

  myFireApi.backup().createBackup(description).then(data => {
    console.log('Antwort:', data);
  }).catch(error => {
    console.error('Fehler:', error);
  });

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | description | string | Optional. Es kann optional ein Beschreibung hinzugefügt werden. |

-> Ein Backup Löschen

  myFireApi.backup().deleteBackup(backupId).then(data => {
    console.log('Antwort: ', data);
  }).catch(error => {
    console.error('Fehler: ', error);
  });

| Parameter | Type | Description | | :-------- | :------- | :-------------------------------- | | backupId | string | Benötigt. Die ID vom Backup welches gelöscht werden soll. |

Monitoring

-> Alle Messungen vom Server Abrufen

  myFireApi.monitoring().getStats().then(data => {
    console.log('Alle Messungen:', data);
  }).catch(error => {
    console.error('Fehler:', error);
  });

-> Alle Ausfälle abrufen

  myFireApi.monitoring().retieceOutages().then(data => {
    console.log('Antwort:', data);
  }).catch(error => {
    console.error('Fehler:', error);
  });