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 |
Gets the content of the script project, including the code source and metadata for each script file.
See: Apps Script API Reference for script.projects.getContent
.
Synopsis
- type ProjectsGetContentResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("content" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "versionNumber" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Content))))))))))
- projectsGetContent :: Text -> ProjectsGetContent
- data ProjectsGetContent
- pgcXgafv :: Lens' ProjectsGetContent (Maybe Xgafv)
- pgcUploadProtocol :: Lens' ProjectsGetContent (Maybe Text)
- pgcAccessToken :: Lens' ProjectsGetContent (Maybe Text)
- pgcUploadType :: Lens' ProjectsGetContent (Maybe Text)
- pgcVersionNumber :: Lens' ProjectsGetContent (Maybe Int32)
- pgcScriptId :: Lens' ProjectsGetContent Text
- pgcCallback :: Lens' ProjectsGetContent (Maybe Text)
REST Resource
type ProjectsGetContentResource = "v1" :> ("projects" :> (Capture "scriptId" Text :> ("content" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "versionNumber" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Content)))))))))) Source #
A resource alias for script.projects.getContent
method which the
ProjectsGetContent
request conforms to.
Creating a Request
Creates a value of ProjectsGetContent
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsGetContent Source #
Gets the content of the script project, including the code source and metadata for each script file.
See: projectsGetContent
smart constructor.
Instances
Request Lenses
pgcUploadProtocol :: Lens' ProjectsGetContent (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pgcAccessToken :: Lens' ProjectsGetContent (Maybe Text) Source #
OAuth access token.
pgcUploadType :: Lens' ProjectsGetContent (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pgcVersionNumber :: Lens' ProjectsGetContent (Maybe Int32) Source #
The version number of the project to retrieve. If not provided, the project's HEAD version is returned.
pgcScriptId :: Lens' ProjectsGetContent Text Source #
The script project's Drive ID.
pgcCallback :: Lens' ProjectsGetContent (Maybe Text) Source #
JSONP