planviewer / api-client-php
API Client library to access Planviewer API's
Installs: 5 821
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 3
Open Issues: 2
Requires
- guzzlehttp/guzzle: ^6.4
- dev-master
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- dev-dependabot/composer/guzzlehttp/psr7-1.9.1
- dev-dependabot/composer/guzzlehttp/guzzle-6.5.8
- dev-example-code-verkrijgen-omliggende-percelen
- dev-update-product-api
- dev-spring-2020-release
- dev-product-api-examples
- dev-examples
- dev-api-object
- dev-Maps-api-lib
- dev-composer-setup
This package is auto-updated.
Last update: 2024-10-12 09:30:49 UTC
README
Composer Installation
By far the easiest way to install the api-client is to require it with Composer.
$ composer require "planviewer/api-client-php:^1.0.0" { "require": { "planviewer/api-client-php": "^1.0.0" } }
Manual Installation
If you're not familiar with using composer we've added a ZIP file to the releases containing the API client. Download the api-client-php from the releases page.
Basic Authentication
You'll need a Client & Secret in order to use Planviewer API's Log into https://www.planviewer.nl and go to your applications: https://www.planviewer.nl/my_api/applications/
Generate a random Client & Secret.
Add the Client & Secret to /config/config.php or to your configuration file.
return [ 'api-key' => '86c****7b', 'api-secret' => '3783******6b3ab4c87fef3ffc*****bb058a72c****cbef2d', ];
Class integration
Add the use to your class or script. create an instance of the Planviewer object.
use Planviewer/Planviewer; $planviewer = new Planviewer($config);
The Planviewer object contains all our API's. You can access the calls as follows:
/** Access Maps API */ $planviewer->mapsApi>listViewers(); /** Access Data API */ $planviewer->dataApi->getdataList(); /** Access Product API */ $planviewer->productApi->getProducts();