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 |
Runs a function in an Apps Script project that has been deployed for use with the Apps Script Execution API. This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the Authentication section; script projects that do not require authorization cannot be executed through this API. To find the correct scopes to include in the authentication token, open the project in the script editor, then select **File > Project properties** and click the **Scopes** tab.
See: Google Apps Script Execution API Reference for script.scripts.run
.
- type ScriptsRunResource = "v1" :> ("scripts" :> (CaptureMode "scriptId" "run" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ExecutionRequest :> Post '[JSON] Operation)))))))))))
- scriptsRun :: ExecutionRequest -> Text -> ScriptsRun
- data ScriptsRun
- srXgafv :: Lens' ScriptsRun (Maybe Text)
- srUploadProtocol :: Lens' ScriptsRun (Maybe Text)
- srPp :: Lens' ScriptsRun Bool
- srAccessToken :: Lens' ScriptsRun (Maybe Text)
- srUploadType :: Lens' ScriptsRun (Maybe Text)
- srPayload :: Lens' ScriptsRun ExecutionRequest
- srBearerToken :: Lens' ScriptsRun (Maybe Text)
- srScriptId :: Lens' ScriptsRun Text
- srCallback :: Lens' ScriptsRun (Maybe Text)
REST Resource
type ScriptsRunResource = "v1" :> ("scripts" :> (CaptureMode "scriptId" "run" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ExecutionRequest :> Post '[JSON] Operation))))))))))) Source #
A resource alias for script.scripts.run
method which the
ScriptsRun
request conforms to.
Creating a Request
Creates a value of ScriptsRun
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ScriptsRun Source #
Runs a function in an Apps Script project that has been deployed for use with the Apps Script Execution API. This method requires authorization with an OAuth 2.0 token that includes at least one of the scopes listed in the Authentication section; script projects that do not require authorization cannot be executed through this API. To find the correct scopes to include in the authentication token, open the project in the script editor, then select **File > Project properties** and click the **Scopes** tab.
See: scriptsRun
smart constructor.
Eq ScriptsRun Source # | |
Data ScriptsRun Source # | |
Show ScriptsRun Source # | |
Generic ScriptsRun Source # | |
GoogleRequest ScriptsRun Source # | |
type Rep ScriptsRun Source # | |
type Scopes ScriptsRun Source # | |
type Rs ScriptsRun Source # | |
Request Lenses
srUploadProtocol :: Lens' ScriptsRun (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
srAccessToken :: Lens' ScriptsRun (Maybe Text) Source #
OAuth access token.
srUploadType :: Lens' ScriptsRun (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
srPayload :: Lens' ScriptsRun ExecutionRequest Source #
Multipart request metadata.
srBearerToken :: Lens' ScriptsRun (Maybe Text) Source #
OAuth bearer token.
srScriptId :: Lens' ScriptsRun Text Source #
The project key of the script to be executed. To find the project key, open the project in the script editor, then select **File > Project properties**.
srCallback :: Lens' ScriptsRun (Maybe Text) Source #
JSONP