pdir/propstack-api

Propstack的简单API集成

0.1.0 2022-01-06 06:52 UTC

This package is not auto-updated.

Last update: 2024-09-28 19:52:56 UTC


README

需求

PHP: >= 7.2
扩展: Composer, PHP-JSON

安装

composer
composer require pdir/propstack-api

用法

在此搜索官方API文档。
您需要一个API密钥 - 咨询支持或访问Propstack中的账户设置。

基本

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