Download the PHP package optigov/optigov-api-php without Composer
On this page you can find all versions of the php package optigov/optigov-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download optigov/optigov-api-php
More information about optigov/optigov-api-php
Files in optigov/optigov-api-php
Package optigov-api-php
Short Description The optiGov API PHP Client Library for V1 version of the API
License
Homepage https://github.com/optigov/optigov-api-php
Informations about the package optigov-api-php
optigov-api-php
Für weitere Informationen, siehe optiGov-Dokumentation.
Installation
Schnellstart
Instanziierung
Ein optiGov-Client kann über die Client
-Klasse intantiiert werden. Dabei werden die Urls des API-Endpunkts, des OAuth2.0-Auth-Endpunkts und des OAuth2.0-Token-Endpunkts benötigt.
Abfragen
Die Abfragen innerhalb der Bibliothek teilen sich in sogenannte Responsibilities
auf.
Diese enthalten verschiedene Verantwortlichekeiten - so ist z.B. die GlobalResponsibility
für alle allgemeinen, von einer Verwaltung losgelösten Anfragen zuständig.
Die VerwaltungResponsibility
handelt alle Abfragen bzgl. aller Einträge einer Verwaltung ab - und die BuergerResponsibility
übernimmt alle Funktionen, welche eine Bürgerauthorisierung benötigen.
Die GlobalResponsibility
Eine Dienstleistung, oder nur ihren Namen abfragen:
Eine Einrichtung, oder nur ihren Namen abfragen:
Einen Mitarbeiter, oder nur seinen / ihren Namen abfragen:
Um einen Bürger einzuloggen verwendet diese Bibliothek den von optiGov bereitgestellten OAuth2.0 Authorization-Flow mit PKCE. Dieser wird in zwei Schritten durchgeführt. Als Erstes wird eine URL zur Authorisierung für die Weiterleitung erzeugt:
Nachdem nun der Bürger eingeloggt ist und an die OPTIGOV_OAUTH_CLIEBNT_REDIRECT_URL
der Authorization-Code gesendet wurde, kann darüber das Access- und Refresh-Token wie folgt abgefragt werden:
Die VerwaltungResponsibility
Alle Dienstleistungen abfragen:
Alle Themenfelder abfragen:
Alle Einrichtungen abfragen:
Alle Mitarbeiter abfragen:
Die BuergerResponsibility
Alle Anträge eines Bürgers abfragen:
Alle Termine eines Bürgers abfragen:
Alle Chats eines Bürgers abfragen:
Einen Chat eines Bürgers abfragen:
Alle Daten eines Bürgers abfragen:
Einen Antrag mit vorbefüllten Daten stellen:
Eine Datei hochladen:
Alle Daten eines Bürgers löschen:
Einen neuen Chat erstellen:
Eine neue Nachricht senden:
Tests und Beteiligung
Unit-Tests
Hinweis: Die Unit-Tests benötigen die Datei tests/bootstrap.php
, welche notwenige (folgende) Konstanten definiert:
Ausführen aller Tests:
Beteiligung
Für Beteiligung an der Entwicklung der Bibliothek wenden Sie sich bitte an [email protected].
All versions of optigov-api-php with dependencies
ext-curl Version *