gurudigital/pesthub

Integration with https://pw.gurudigital.nz/ Pest & Weeds
77
Install
composer require gurudigital/pesthub
Latest Version:v1.1.5
PHP:^7.1 || ^8
License:BSD-3-Clause
Last Updated:Sep 6, 2021
Links: GitHub  ·  Packagist
Maintainer: gdmedia

SilverStripe Pests & Weeds system integration

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