cURL
curl --request POST \ --url https://api.x.com/2/dm_conversations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "conversation_type": "Group", "message": { "text": "<string>", "attachments": [ { "media_id": "1146654567674912769" } ] }, "participant_ids": [ "2244994945" ] } '
{ "errors": [ { "title": "<string>", "type": "<string>", "detail": "<string>", "status": 123 } ] }
지정된 참여자들과의 새로운 다이렉트 메시지(DM) 대화를 시작합니다.
The access token received from the authorization server in the OAuth 2.0 flow.
생성 중인 대화의 유형입니다.
Group
Show child attributes
DM 대화의 참여자들입니다.
2 - 49
이 사용자에 대한 고유 식별자입니다. 일부 언어나 도구에서 큰 정수를 제대로 처리하지 못하는 문제를 피하기 위해 문자열로 반환됩니다.
^[0-9]{1,19}$
요청이 성공했습니다.
1
IETF RFC 7807(https://tools.ietf.org/html/rfc7807)에 정의된 HTTP Problem Details 객체