发送JSON有效载荷带标头Python

发布于 2025-02-09 13:18:26 字数 899 浏览 0 评论 0原文

我得到了这个有效载荷

,我想通过python的请求发送,我不确定我如何格式化?

我将把它们发送到这里,以防万一:

{token: "TOKEN",…}
   events: [{type: "settings_pane_viewed",…}]
      0: {type: "settings_pane_viewed",…}
         properties: {client_track_timestamp: 1655898468696, settings_type: "user", origin_pane: null,…}
            accessibility_features: 524416
            accessibility_support_enabled: false
            client_performance_memory: 0
            client_send_timestamp: 1655898469437
            client_track_timestamp: 1655898468696
            client_uuid: "UUID"
            destination_pane: "My Account"
            origin_pane: null
            rendered_locale: "en-US"
            settings_type: "user"
            source: null
         type: "settings_pane_viewed"
      token: "TOKEN"

I got this Payload

And I want to send it via requests with Python and I'm not sure how I can format this?

I will send them here just in case:

{token: "TOKEN",…}
   events: [{type: "settings_pane_viewed",…}]
      0: {type: "settings_pane_viewed",…}
         properties: {client_track_timestamp: 1655898468696, settings_type: "user", origin_pane: null,…}
            accessibility_features: 524416
            accessibility_support_enabled: false
            client_performance_memory: 0
            client_send_timestamp: 1655898469437
            client_track_timestamp: 1655898468696
            client_uuid: "UUID"
            destination_pane: "My Account"
            origin_pane: null
            rendered_locale: "en-US"
            settings_type: "user"
            source: null
         type: "settings_pane_viewed"
      token: "TOKEN"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文