Skip to content

Instantly share code, notes, and snippets.

@grant
Last active October 17, 2019 22:57
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/7014401e9b78b56a5e12dae73f2fd80c to your computer and use it in GitHub Desktop.
Save grant/7014401e9b78b56a5e12dae73f2fd80c to your computer and use it in GitHub Desktop.
Cloud Tasks – Create HTTP Task
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