GetNotification

IDtail.com API

Jump to: navigation, 찾기

[편집] QUERY

변경될 가능성이 있습니다.

http://api.idtail.com/get_notification/사용자ID
Authorization: Basic AUTH-STRING
  • AUTH-STRING = BASE64( HASHSTRING+"@" + 사용자ID + TIMESTAMP )
  • HASHSTRING = SHA1HEX( 사용자ID + APIKEY + TIMESTAMP )
  • SHA1HEX(v) = v의 SHA1 결과를 16진문자열로 표현 (40bytes)
  • TIMESTAMP = ISO8601 Format, UTC로 전송해야합니다. YYYY-MM-DDThh:mm:ssZ
             Ex) 바른 표기: 2008-02-20T14:30:21Z
             Ex) 받아들이지 않는 표기: 2008-02-20T14:30:21+09:00 (Local time)
  • "+" 연산은 붙이기(concatenate)입니다.
  • 결과는 RSS 형식으로 출력됩니다.
  • Authorization 은 HTTP 헤더에 들어가는 것이며, 추후 GET, POST로 확장된 포맷을 지원예정입니다.
  • https 로 들어 올 경우 HTTP의 Basic Authentication 을 따를 수 있는 방법도 지원예정입니다.

[편집] RESULT

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Idtail Antenna (coolengineer)</title>
		<link>사용자의 마이디테일주소</link>
		<description>RSS 설명</description>
		<language>ko</language>
		<generator>IdtailRssFeed 1.0</generator> 

		<image>
			<title>사용자ID</title>
			<url>사용자의 이미지</url>
			<link>사용자의 마이디테일 주소</link>
			<description>이미지 설명</description>
		</image>
		<item>
			<title>알림 내용</title>
			<link>알림 바로가기 주소</link>
			<description>HTML형식의 알림내용</description>
			<category>Antenna</category>
			<author>사용자ID</author>
			<guid>알림내용 GUID</guid>
			<pubDate>발생시각</pubDate>
		</item>
		<item>
			<title>알림 내용</title>
			<link>알림 바로가기 주소</link>
			<description>HTML형식의 알림내용</description>
			<category>Antenna</category>
			<author>사용자ID</author>
			<guid>알림내용 GUID</guid>
			<pubDate>발생시각</pubDate>
		</item>
               ...
	</channel>
</rss>

[편집] SAMPLE

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0">
	<channel>
		<title>Idtail Antenna (coolengineer)</title>
		<link>http://sample.idtail.com</link>
		<description>[Idtail]sample님의 안테나 Rss 정보입니다. now일전 ~ 오늘</description>
		<language>ko</language>
		<generator>IdtailRssFeed 1.0</generator>

		<image>
			<title>[Idtail]coolengineer</title>
			<url>http://coolengineer.idtail.com/icon/90x90.jpg</url>
			<link>http://coolengineer.idtail.com</link>
			<description>[Idtail]coolengineer 아이콘 정보 입니다.</description>
		</image>
		<item>

			<title>sample님이 수작님과 네트워크를 맺었습니다.</title>
			<link>http://coolengineer.idtail.com/antenna#noti_56783</link>
			<description>
					<![CDATA[<div><a href="http://themaum.idtail.com" ><img style="width: 219px; height: 241px;"  src="http://themaum.idtail.com/icon/60x60.jpg"/></a><img style="text-align: top;" src="/img/ico/ico_network_other.gif" alt="네트워크"/><a href="http://themaum.idtail.com"></a>sample님이 <a href="http://kkommy.idtail.com">kkommy</a>님과 네트워크를 맺었습니다.</div>]]>
			</description>
			<category>Antenna</category>
			<author>themaum</author>

			<comments><![CDATA[http://coolengineer.idtail.com/antenna#noti_56783]]></comments>
			<guid>http://coolengineer.idtail.com/antenna#noti_56783</guid>
			<pubDate>Tue, 19 Feb 2008 13:45:22 +0900</pubDate>
		</item>
		<item>
			<title>정청환님이 사진을 업데이트 하였습니다.</title>
			<link>http://coolengineer.idtail.com/antenna#noti_56761</link>

			<description>
					<![CDATA[<div><a href="http://chungha2.idtail.com" ><img style="width: 219px; height: 241px;"  src="http://chungha2.idtail.com/icon/60x60.jpg"/></a><img style="text-align: top;" src="/img/ico/ico_mydetail2.gif" alt="마이디테일"/><a href="http://chungha2.idtail.com">정청환</a>님이 사진을 업데이트 하였습니다.</div>]]>
			</description>
			<category>Antenna</category>
			<author>chungha2</author>
			<comments><![CDATA[http://coolengineer.idtail.com/antenna#noti_56761]]></comments>
			<guid>http://coolengineer.idtail.com/antenna#noti_56761</guid>

			<pubDate>Tue, 19 Feb 2008 09:11:49 +0900</pubDate>
		</item>
        </channel>
</rss>