pdir/propstack-api

Simple API Integration for Propstack

0.1.0 2022-01-06 06:52 UTC

This package is not auto-updated.

Last update: 2024-04-13 17:13:57 UTC


README

Requirements

PHP: >= 7.2
Extensions: Composer, PHP-JSON

Install

composer:
composer require pdir/propstack-api

Usage

Search for the official API Documentation here.
You need an Api Key - Ask support or visit account settings in Propstack.

Basic

// 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();