cURL
curl --request POST \ --url https://api.x.com/2/dm_conversations/{dm_conversation_id}/messages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "text": "<string>", "attachments": [ { "media_id": "1146654567674912769" } ] } '
{ "errors": [ { "title": "<string>", "type": "<string>", "detail": "<string>", "status": 123 } ] }
指定した会話 ID を使用して、そのダイレクトメッセージ会話に新しいメッセージを送信します。
The access token received from the authorization server in the OAuth 2.0 flow.
DM 会話の ID。
メッセージの本文。
1
DM イベントに付随する情報。
Show child attributes
リクエストは成功しました。
IETF RFC 7807 (https://tools.ietf.org/html/rfc7807) で定義された HTTP Problem Details オブジェクト。