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 |
Downloads a report file encoded in UTF-8.
See: DoubleClick Search API Reference for doubleclicksearch.reports.getFile
.
Synopsis
- type ReportsGetFileResource = ("doubleclicksearch" :> ("v2" :> ("reports" :> (Capture "reportId" Text :> ("files" :> (Capture "reportFragment" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] ()))))))) :<|> ("doubleclicksearch" :> ("v2" :> ("reports" :> (Capture "reportId" Text :> ("files" :> (Capture "reportFragment" (Textual Int32) :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream)))))))
- reportsGetFile :: Text -> Int32 -> ReportsGetFile
- data ReportsGetFile
- rgfReportId :: Lens' ReportsGetFile Text
- rgfReportFragment :: Lens' ReportsGetFile Int32
REST Resource
type ReportsGetFileResource = ("doubleclicksearch" :> ("v2" :> ("reports" :> (Capture "reportId" Text :> ("files" :> (Capture "reportFragment" (Textual Int32) :> (QueryParam "alt" AltJSON :> Get '[JSON] ()))))))) :<|> ("doubleclicksearch" :> ("v2" :> ("reports" :> (Capture "reportId" Text :> ("files" :> (Capture "reportFragment" (Textual Int32) :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream))))))) Source #
A resource alias for doubleclicksearch.reports.getFile
method which the
ReportsGetFile
request conforms to.
Creating a Request
Creates a value of ReportsGetFile
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ReportsGetFile Source #
Downloads a report file encoded in UTF-8.
See: reportsGetFile
smart constructor.
Instances
Request Lenses
rgfReportId :: Lens' ReportsGetFile Text Source #
ID of the report.
rgfReportFragment :: Lens' ReportsGetFile Int32 Source #
The index of the report fragment to download.