我如何通过私有 api 在 Instagram 上发送私信?
我想通过python使用私人API发送
我尝试的Instagram DM:
def send_dm(session, id, message):
response = session.post(f"https://i.instagram.com/api/v1/direct_v2/threads/broadcast/text/", data={
'recipient_users': f'["{id}"]',
'text': message
})
return json.loads(response.text)
I want to send via python an instagram DM with the private api
I tried this:
def send_dm(session, id, message):
response = session.post(f"https://i.instagram.com/api/v1/direct_v2/threads/broadcast/text/", data={
'recipient_users': f'["{id}"]',
'text': message
})
return json.loads(response.text)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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