Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned.
See: Search Console API Reference for webmasters.searchanalytics.query
.
Synopsis
- type SearchanalyticsQueryResource = "webmasters" :> ("v3" :> ("sites" :> (Capture "siteUrl" Text :> ("searchAnalytics" :> ("query" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SearchAnalyticsQueryRequest :> Post '[JSON] SearchAnalyticsQueryResponse)))))))
- searchanalyticsQuery :: Text -> SearchAnalyticsQueryRequest -> SearchanalyticsQuery
- data SearchanalyticsQuery
- sqSiteURL :: Lens' SearchanalyticsQuery Text
- sqPayload :: Lens' SearchanalyticsQuery SearchAnalyticsQueryRequest
REST Resource
type SearchanalyticsQueryResource = "webmasters" :> ("v3" :> ("sites" :> (Capture "siteUrl" Text :> ("searchAnalytics" :> ("query" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SearchAnalyticsQueryRequest :> Post '[JSON] SearchAnalyticsQueryResponse))))))) Source #
A resource alias for webmasters.searchanalytics.query
method which the
SearchanalyticsQuery
request conforms to.
Creating a Request
Creates a value of SearchanalyticsQuery
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SearchanalyticsQuery Source #
Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned.
See: searchanalyticsQuery
smart constructor.
Instances
Request Lenses
sqSiteURL :: Lens' SearchanalyticsQuery Text Source #
The site's URL, including protocol. For example: http://www.example.com/
sqPayload :: Lens' SearchanalyticsQuery SearchAnalyticsQueryRequest Source #
Multipart request metadata.