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를 사용해 새 다이렉트 메시지(DM)를 전송합니다.
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 객체