Simple API
The Simple API is a very simple interface to access lots of data from Hictu.
You can get data via XML. You do not need a Developer API Key to use the Simple API.
The Simple API lets you quickly get lots of data about a user, group, channel, or album in a variety of formats.
Making a User Profile Request
To access the data for a specific user, you simply request a URL from Hictu.com and let us know what you want.
The rquested user info are displayed according to users privacy settings.
The URLs are simple, they can be built with the following format:
http://www.hictu.com/api/uinfo.php?user=username
Example Request
http://www.hictu.com/api/uinfo.php?user=muzedon
Example Response
<response>
<user_info>
<userid>Muzedon</userid>
<name>Muzedon</name>
<surname>Lionheart</surname>
<phone>00393495306966</phone>
<mobile/>
<gender>M</gender>
<birthday>1981-11-29</birthday>
<bio>I am an Italian web developer. I love football, manga and fantasy novels. </bio>
<website>http://drow.muzedon.com</website>
<country>IT</country>
<avatar>http://www.hictu.com/images/avatars/Muzedon.jpg</avatar>
<personal_phrase>To beer or not to beer.</personal_phrase>
</user_info>
</response>
Making a Last User Posts Request
You can easily get the last public posts of any user, as you could see in their public profile.
The URLs are similar to the User profile Request, they can be built with the following format:
http://www.hictu.com/api/pinfo.php?user=username
Example Request
http://www.hictu.com/api/pinfo.php?user=muzedon
Example Response
<response>
<post_info>
<postid>72104</postid>
<userid>Muzedon</userid>
<replies>0</replies>
<thread/>
<timestamp>1233570012</timestamp>
<messagebody>Hello everybody</messagebody>
<category>0</category>
<type>text</type>
<thumb/>
</post_info>
<post_info>
<postid>72102</postid>
<userid>Muzedon</userid>
<replies>0</replies>
<thread/>
<timestamp>1231938051</timestamp>
<messagebody>This is my first video post!</messagebody>
<category>0</category>
<type>video</type>
<thumb>http://www.hictu.com/videoscreenshots/video/M/Muzedon_20090114140043.flv.jpg</thumb>
</post_info>
[...]
<post_info>
<postid>72097</postid>
<userid>Muzedon</userid>
<replies>0</replies>
<thread/>
<timestamp>1224232425</timestamp>
<messagebody>YouTube sharing</messagebody>
<category>0</category>
<type>youtube</type>
<thumb>http://i.ytimg.com/vi/AhsqsUbUbXQ/2.jpg</thumb>
</post_info>
</response>
Making a Video Request
The Hictu Application Programming Interface provides exended informations for video posts.
To get in-depth video details you simply request the following URL:
http://www.hictu.com/api/vinfo.php?mid=id
Example Request
http://www.hictu.com/api/vinfo.php?mid=93801
Example Response
<response>
<video_info>
<videoid>72102</videoid>
<userid>Muzedon</userid>
<reply_count>0</reply_count>
<in_reply_to/>
<timestamp>1231938051</timestamp>
<text>video</text>
<swf>video/M/Muzedon_20090114140043.flv</swf>
<thumb>http://www.hictu.com/videoscreenshots/video/M/Muzedon_20090114140043.flv.jpg</thumb>
</video_info>
</response>
|