Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. "PAJ GPS" JSON API mit Blockly abfragen ???

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    "PAJ GPS" JSON API mit Blockly abfragen ???

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DrFirebird last edited by DrFirebird

      Hallo zusammen,

      ich würde gerne mit blockly auf die "PAJ GPS JSON API" zugreifen.
      https://connect.paj-gps.de/api/documentation
      https://connect.paj-gps.de/docs/api-docs.json

      Mir fehlt absolut jeder Ansatz.
      Müsste mich mit EMail Adresse und Kennwort anmelden.

      Screenshot 2022-08-15 123259.jpg Screenshot 2022-08-15 123243.jpg

      Soweit klappt es, .... aber hier kommt ich nicht weiter.
      Wie sende ich einen POST mit meinen Logindaten ?

      Screenshot 2022-08-15 123634.jpg

      M J 2 Replies Last reply Reply Quote 0
      • M
        Moebi @DrFirebird last edited by

        Ich stehe (bald) vor dem gleichen Vorhaben.
        Schätze im Januar habe ich etwas Zeit dafür.

        @drfirebird bist du in dem Thema weiter gekommen?

        1 Reply Last reply Reply Quote 0
        • J
          japi @DrFirebird last edited by

          @drfirebird Hi, gerne versuche ich zu helfen obwohl der Thread schon so alt ist.

          Der Login Endpunkt liegt jetzt hier wie du auf "https://connect.paj-gps.de/api/documentation" sehen kannst:
          "https://connect.paj-gps.de/api/v1/login"

          Du brauchst eigentlich nur per POST Anfrage die form-data Felder "email" und "password" zu übergeben. Hier ein curl Beispiel:

          curl --location 'https://connect.paj-gps.de/api/v1/login' \
          --form 'email="DEINE_EMAILADRESSE"' \
          --form 'password="DEIN_PASSWORT"'
          

          Dann bekommst du wie üblich bei oauth einen "token" zurück den du in den header jeder weiteren Anfrage einsetzt um dich zu authentifizieren

          curl --location 'https://connect.paj-gps.de/api/v1/device/' \
          --header 'Authorization: Bearer DEIN_TOKEN' \
          

          Ebenso einen "refresh_token" um nach Ablauf von "expires_in" einen neuen token automatisiert anzufragen.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

          ioBroker
          Community Adapters
          Donate

          749
          Online

          31.9k
          Users

          80.1k
          Topics

          1.3m
          Posts

          3
          3
          529
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo