메시지를 소문냅니다.
지원 형식
xml, json
요청 주소(Request URL)
https://apis.daum.net/yozm/v1_0/message/quote.[xml|json]
인증(Authorization)
OAuth
HTTP Method
POST, GET
요청 변수(Request Parameters)
parameter
| 요청 변수 | 값 | 설명 |
|---|---|---|
| msg_id | string(필수) | 소문낼 메시지의 ID |
출력 결과
common response
| 출력 변수 | 설명 |
|---|---|
| result_msg | 결과 메세지 OR 에러 메세지 |
| status |
|
message
| 출력 변수 | 값 | 설명 |
|---|---|---|
| msg_id | numeric | 메세지 고유 id |
| type | string | 메세지 종류 (O:일반, Q:소문, R:반응(댓글), N:공지(알림) |
| text | string | DB에 입력된 메세지 내용(치환자를 포함하고 있음) |
| plain_text | string | 순수한 입력 메세지 |
| html_text | string | yozm 내부에서 사용하는 @@(맨션), [](태그), ##LINK__##(링크치환자)를 모두 html a tag로 변환한 html text |
| original_msg | message | 소문낸 글의 원본 message |
| parent_msg | message | 반응글의 원본 message |
| source_name | string | 메세지 작성 출처 이름 |
| reply_cnt | integer | 반응 갯수 |
| quote_cnt | integer | 소문 갯수 |
| favorited | string | 사용자가 해당 메세지를 즐겨찾기 했는지 여부. daumid를 넘기지 않으면 모두 false |
| user | user |
|
| attachment | attachment |
|
| permanent_url | 메세지의 고유 url | |
| pub_date | string | 메세지 작성일 |
출력 방식
xml
<info> <result_msg><![CDATA[OK]]></result_msg> <status>200</status> <message> <original_msg> <type><![CDATA[O]]></type> <plain_text><![CDATA[ㅍㅍㅍㅍ]]></plain_text> <html_text><![CDATA[ㅍㅍㅍㅍ]]></html_text> <source_id>0</source_id> <user> <profile_img_url><![CDATA[http://cfile8.uf.daum.net/image/1966EF024C19CAF20D10A5]]></profile_img_url> <url_name><![CDATA[iwaituforever]]></url_name> <nickname><![CDATA[희재]]></nickname> </user> <reply_cnt>0</reply_cnt> <quote_cnt>0</quote_cnt> <attachment/> <source_name><![CDATA[웹]]></source_name> <pub_date><![CDATA[Thu, 08 Jul 2010 16:16:27 KST]]></pub_date> <favorited>false</favorited> <permanent_url><![CDATA[http://dev.yozm.daum.net/iwaituforever/78647506]]></permanent_url> <text><![CDATA[ㅍㅍㅍㅍ]]></text> <msg_id>78647506</msg_id> </original_msg> <type><![CDATA[Q]]></type> <plain_text/> <html_text/> <source_id>0</source_id> <user> <profile_img_url><![CDATA[http://cfile180.uf.daum.net/image/124C08254C0C77E0351EEE]]></profile_img_url> <url_name><![CDATA[comekjhh]]></url_name> <nickname><![CDATA[지홍]]></nickname> </user> <reply_cnt>0</reply_cnt> <quote_cnt>0</quote_cnt> <attachment/> <source_name><![CDATA[웹]]></source_name> <pub_date/> <favorited>false</favorited> <permanent_url><![CDATA[http://dev.yozm.daum.net/comekjhh/78647522]]></permanent_url> <text/> <msg_id>78647522</msg_id> </message> </info>
json
{
"message":{
"text":"",
"reply_cnt":0,
"source_id":0,
"pub_date":"",
"html_text":"",
"plain_text":"",
"attachment":null,
"type":"Q",
"original_msg":{
"text":"ㅍㅍㅍㅍ",
"reply_cnt":0,
"source_id":0,
"pub_date":"Thu, 08 Jul 2010 16:16:27 KST",
"html_text":"ㅍㅍㅍㅍ",
"plain_text":"ㅍㅍㅍ",
"attachment":null,
"type":"O",
"quote_cnt":0,
"favorited":false,
"msg_id":78647506,
"permanent_url":"http://dev.yozm.daum.net/iwaituforever/78647506",
"source_name":"웹",
"user":{
"profile_img_url":"http://cfile8.uf.daum.net/image/1966EF024C19CAF20D10A5",
"nickname":"희재","url_name":"iwaituforever"
}
},
"quote_cnt":0,
"favorited":false,
"msg_id":78647525,
"permanent_url":"http://dev.yozm.daum.net/comekjhh/78647525",
"source_name":"웹",
"user":{
"profile_img_url":"http://cfile180.uf.daum.net/image/124C08254C0C77E0351EEE",
"nickname":"지홍",
"url_name":"comekjhh"
}
},
"result_msg":"OK",
"status":200
}