Documentation ¶
Overview ¶
Package google implements a Service which adds !commands for Google custom search engine. Initially this package just supports image search but could be expanded to provide other functionality provided by the Google custom search engine API - https://developers.google.com/custom-search/json-api/v1/overview
Index ¶
Constants ¶
View Source
const ServiceType = "google"
ServiceType of the Google service
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { types.DefaultService // The Google API key to use when making HTTP requests to Google. APIKey string `json:"api_key"` // The Google custom search engine ID Cx string `json:"cx"` }
Service contains the Config fields for the Google service.
Example request:
{ "api_key": "AIzaSyA4FD39..." "cx": "ASdsaijwdfASD..." }
Click to show internal directories.
Click to hide internal directories.