发出外部 HTTP POST 请求

向外部 HTTP 端点发出 POST 请求。

深入探索

如需查看包含此代码示例的详细文档,请参阅以下内容:

代码示例

YAML

- send_message:
    call: http.post
    args:
      url: https://www.example.com/endpoint
      body:
        some_val: "Hello World"
        another_val: 123
    result: the_message
- return_value:
    return: ${the_message.body}

后续步骤

如需搜索和过滤其他 Google Cloud 产品的代码示例,请参阅Google Cloud 示例浏览器