Inherited by Occurrences, and Species.
◆ __construct()
Constructs a GBIF object.
◆ bool2str()
Represents boolean value as literal.
- Parameters
-
bool | $val | Boolean value to convert. |
- Returns
- string Literal representation ('true' or 'false').
◆ formatQueryString()
formatQueryString |
( |
array |
$args | ) |
|
|
protected |
Formats a query string.
Guzzle cannot deal with duplicate URI parameters by default, so we directly pass a string instead of an array.
- Parameters
-
array | $args | Arguments to be passed through the query string. |
- Returns
- string Formatted query string.
◆ gbifGet()
gbifGet |
( |
|
$uri, |
|
|
array |
$args = [] |
|
) |
| |
|
protected |
Sends an HTTP GET request to GBIF.
- Parameters
-
string | $uri | URI without base URI and leading slash. |
array | $args | Arguments to be passed through the query string. |
- Returns
- array An array of results.
- Exceptions
-
ResTelae\Gbif\GbifException In case the HTTP request ends with an error.
◆ GBIF_BASEURL
const GBIF_BASEURL = 'https://api.gbif.org/v1/' |
The documentation for this class was generated from the following file: