Jes*_*ers 5 httpresponse httprequest segment-io httpapi
这个特定Segment.io的文档和帮助是有限且稀疏的,所以我希望可以在这里询问。
我刚刚设置了一个 Segment.io 工作区和一个 HTTP API 源

根据文档,我向https://api.segment.io/v1/track和https://api.segment.io/v1/page端点发送了一些 POST 请求(使用 Postman)。请求的结构如下:
curl -X POST \
https://api.segment.io/v1/track \
-H 'Accept: */*' \
-H 'Authorization: My4w3s0m3k3y' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Host: api.segment.io' \
-H 'Postman-Token: 474d7fbe-15af-43d2-b629-61e15945e662,2c3d5fbe-2c09-4fe6-b7ea-a04e3221201b' \
-H 'User-Agent: PostmanRuntime/7.11.0' \
-H 'accept-encoding: gzip, deflate' \
-H 'cache-control: no-cache' \
-H 'content-length: 117' \
-d '{
"userId": "abc123",
"event": "My tests",
"properties": {
"name": "test 1"
}
}'
Run Code Online (Sandbox Code Playgroud)
全部返回 200 响应和以下消息:
{
"success": true
}
Run Code Online (Sandbox Code Playgroud)
我在这里缺少什么?
| 归档时间: |
|
| 查看次数: |
3231 次 |
| 最近记录: |