发送JSON有效载荷带标头Python
,我想通过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"
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论