요즘API - 소문내기
작성자 : 타돌이
번호 : 91
(2011-05-27 13:40)
추천 : 0
조회 : 5723

메시지를 소문냅니다.

지원 형식

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
  • 요청 처리 상태 코드
  • 200 : OK
  • 400 : 클라이언트에서 잘못된 요청
  • 404 : 요청을 찾지 못할 경우
  • 401 : 인증이 되지 않은 사용자
  • 503 : 서비스 점검
  • 500 : 내부 서버 오류
  • 3000 : message가 필요합니다.
  • 3001 : msg_id가 필요합니다.
  • 3002 : source_id가 필요합니다.
  • 3003 : 허용된 meta type이 아닙니다.
  • 3004 : url_shorten 이 유효하지 않습니다.
  • 3005 : msg_id 가 유효하지 않습니다.
  • 3006 : parent_msg_id가 유효하지 않습니다.
  • 3007 : 이미 친구입니다.
  • 3008 : 탈퇴한 유져입니다.
  • 3009 : 이미 가입된 유져입니다.
  • 3019 : 자신의 글은 소문낼 수 없습니다.
  • 3020 : 이미 소문낸 글입니다.
  • 3021 : 더 이상 친구 추가를 할 수 없습니다.
  • 4012 : 이미 삭제된 글입니다.

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
  • 메세지 작성 사용자
  • 요청 변수: url_name, 값:string, 설명: daumid이자 yozm 개인 url
  • 요청 변수: nickname, 값:string, 설명: 사용자 닉네임
  • 요청 변수: profile_img_url, 값:string, 설명 : 사용자 프로필이미지 url
attachment attachment
  • 메세지 첨부 데이터
  • 요청 변수:type , 값:string , 설명:종류
  • 요청 변수:thumbnail , 값:string , 설명:썸네일url
  • 요청 변수:img_url , 값: string , 설명:이미지url
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
}