Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pdir/propstack-api

Simple Propstack PHP API
https://github.com/pdir/propstack-api

Last synced: 14 days ago
JSON representation

Simple Propstack PHP API

Awesome Lists containing this project

README

        

# Simple Propstack PHP API

## Requirements

PHP: >= 7.2
Extensions: [Composer](https://getcomposer.org/), [PHP-JSON](https://www.php.net/manual/en/book.json.php)

## Install

composer:
`composer require pdir/propstack-api`

## Usage

Search for the official API Documentation [here](https://docs.propstack.de/).
You need an *Api Key* - Ask support or visit account settings in Propstack.

### Basic

```php
// store keys in .env file or use credentials array
$credentials = [
'apiKey' => 'PROPSTACK_API_KEY',
];

$api = new Pdir\Propstack\Api();
or
$api = new Pdir\Propstack\Api($credentials);

// get all projects
$projects = $api->getProjects();

// get all saved queries
$savedQueries = $api->getSavedQueries();
```