gurudigital/pesthub

Integration with https://pw.gurudigital.nz/ Pest & Weeds

Installs: 69

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

v1.1.5 2021-09-06 02:47 UTC

This package is auto-updated.

Last update: 2024-03-06 08:20:52 UTC


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