gurudigital / pesthub
Integration with https://pw.gurudigital.nz/ Pest & Weeds
Installs: 77
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- php: ^7.1 || ^8
- silverstripe/admin: ^1.0
- silverstripe/framework: ^4.0
README
Enables the display of Pests and Weeds from https://pw.gurudigital.nz/
Using a PestHub Page
Introduction
You must have an account on https://pw.gurudigital.nz/ Contact info@gurudigital.nz to arrange access After login navigate to - Settings & Users - Web API to get Organisation ID and API Key
Installation
composer require gurudigital/pesthub
Configuration:
gurudigital\pesthub\PestHub: organisationid: [Your Organisation ID] apikey: [Your API Key]
Pest summary data
Get summary data for all pests and weeds E.g. for adding urls to search index or sitemap
$url = "[URL of Pest Hub Page]"; $pestHub = new PestHub(); return $pestHub->getPestContent($url);
Errors
Incorrect configuration - Check Configuration for correct path, Organisation ID and apikey
Invalid API Key - Check Configuration for correct Organisation ID and apikey