SilverWare\Google\API\GoogleAPI
An object to encapsulate Google API data and methods.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class GoogleAPI
{
- // methods
- public string getAPIKey()
- public boolean hasAPIKey()
- public string getAPILanguage()
- public string getAnalyticsTrackingID()
- public string getVerificationCode()
- public boolean isAnalyticsEnabled()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Methods
public
- getAPIKey() — Answers the API key from site or YAML configuration.
- getAPILanguage() — Answers the API language from site or YAML configuration.
- getAnalyticsTrackingID() — Answers the analytics tracking ID from site or YAML configuration.
- getVerificationCode() — Answers the site verification code from site or YAML configuration.
- hasAPIKey() — Answers true if the receiver has an API key.
- isAnalyticsEnabled() — Answers true if analytics is enabled for the site.