oveleon/contao-propstack-api-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Propstack API Controller for Contao.

Installs: 71

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Open Issues: 0

Type:contao-bundle

pkg:composer/oveleon/contao-propstack-api-bundle

0.3.1 2025-03-27 19:10 UTC

This package is auto-updated.

Last update: 2025-10-15 17:48:00 UTC


README

Important

Open source development of this plugin has been abandoned. Further development might continue in private and is no longer publicly available.

Version 2 for Propstack API See https://api.propstack.de/docs for more information

This extension serves as a bridge between Contao and the Propstack API. You can find the documentation for Propstack here. A Propstack API key is required for use.

  • Access to the API can be protected
  • API calls can be made both via GET (protected) and directly via PHP (unprotected)
  • In-build parameter checking: only allowed parameters are passed to the API to prevent errors

Endpoints:
All currently available endpoints can be viewed here.

Example (GET):

https://example.com/api/propstack/units?key=contao_api_key

// Show all routes
https://example.com/api/propstack/help?key=contao_api_key

Example (PHP):

$objUnits = new UnitController();
$objUnits->setFormat(PropstackController::FORMAT_JSON);

$units = $objUnits->read($parameters);
$units = $objUnits->readOne($id);
$units = $objUnits->edit($id, $parameters);
$units = $objUnits->create($parameters);
$units = $objUnits->delete($id);

// Create a unit with custom fields
$objUnits->setCustomFields(['my_custom_field']);

$units = $objUnits->create([
    'title'          => 'My Unit',
    'marketing_type' => 'BUY',
    'object_type'    => 'LIVING',
    'rs_type'        => 'APARTMENT',
    'custom_fields'  => [
        'my_custom_field' => '123'
    ]
]);