Skip to content

Instantly share code, notes, and snippets.

@grant
Created May 15, 2021 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grant/a47e23f2d44241ea9aa7beb6cf17008b to your computer and use it in GitHub Desktop.
Save grant/a47e23f2d44241ea9aa7beb6cf17008b to your computer and use it in GitHub Desktop.
Cloud Workflow – myFirstWorkflow
- getCurrentTime:
call: http.get
args:
url: https://us-central1-workflowsample.cloudfunctions.net/datetime
result: currentTime
- readWikipedia:
call: http.get
args:
url: https://en.wikipedia.org/w/api.php
query:
action: opensearch
search: ${currentTime.body.dayOfTheWeek}
result: wikiResult
- returnResult:
return: ${wikiResult.body[1]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment