Last active
October 17, 2019 22:57
-
-
Save grant/7014401e9b78b56a5e12dae73f2fd80c to your computer and use it in GitHub Desktop.
Cloud Tasks – Create HTTP Task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const parent = client.queuePath(project, location, queue); | |
const task = { | |
httpRequest: { | |
httpMethod: 'POST', | |
url, | |
}, | |
}; | |
const [response] = await client.createTask({parent, task}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment