API Documentation

Feeling RESTful?

API v2 » event/show (GET)

Description

This method returns all images in the specified event BETA

URL

http://api.twitpic.com/2/event/show.format

Available Formats

xml, json, jsonp

HTTP Method

GET

Requires Authentication

False

Parameters

  • id (Required): The short ID of the event (same as ID in URL)

Responses

Sample XML Response

	
	<?xml version="1.0" encoding="UTF-8"?>
	<event>
	    <id>1</id>
	    <short_id>1</short_id>
	    <user_id>1</user_id>
	    <name>Event 1</name>
	    <description>Party!</description>
	    <timestamp>2010-06-09 17:34:10</timestamp>
	    <images>
	        <image>
	            <id>7</id>
	            <short_id>7</short_id>
	            <user_id>1</user_id>
	            <source>site</source>
	            <message>fsdfgfsdaefsdf</message>
	            <views>5</views>
	            <width>600</width>
	            <height>778</height>
	            <size>45821</size>
	            <type>jpg</type>
	            <status_id>0</status_id>
	            <in_reply_to_status_id>0</in_reply_to_status_id>
	            <in_reply_to_user_id>0</in_reply_to_user_id>
	            <location />
	            <timestamp>2010-06-09 16:25:38</timestamp>
	            <application />
	            <user>
	                <id>1</id>
	                <twitter_id>16984249</twitter_id>
	                <username>twitpicuser</username>
	                <name>twitpicuser</name>
	                <location>The Interwebs</location>
	                <website>http://twitpic.com</website>
	                <bio>Hi :)</bio>
	                <avatar_url>http://s.twimg.com/a/1278724399/images/default_profile_2_normal.png</avatar_url>
	                <profile_background_color>9ae4e8</profile_background_color>
	                <profile_text_color>000000</profile_text_color>
	                <profile_link_color>0000ff</profile_link_color>
	                <profile_sidebar_fill_color>e0ff92</profile_sidebar_fill_color>
	                <profile_background_image_url>http://s.twimg.com/a/1278724399/images/themes/theme1/bg.png</profile_background_image_url>
	                <profile_background_tile>0</profile_background_tile>
	                <utc_offset>-21600</utc_offset>
	                <geo_enabled>1</geo_enabled>
	                <public_updates>0</public_updates>
	                <public_tagging>1</public_tagging>
	                <banned>0</banned>
	                <timestamp>2010-06-10 16:00:04</timestamp>
	                <events />
	                <images />
	                <places />
	            </user>
	            <faces />
	            <comments />
	            <events />
	        </image>
	    </images>
	</event>	

Sample JSON Response

	
	{
	   "id":"1",
	   "short_id":"1",
	   "user_id":"1",
	   "name":"Event 1",
	   "description":"Party!",
	   "timestamp":"2010-06-09 17:34:10",
	   "images":[
	      {
	         "id":"7",
	         "short_id":"7",
	         "user_id":"1",
	         "source":"site",
	         "message":"fsdfgfsdaefsdf",
	         "views":"5",
	         "width":"600",
	         "height":"778",
	         "size":"45821",
	         "type":"jpg",
	         "status_id":"0",
	         "in_reply_to_status_id":"0",
	         "in_reply_to_user_id":"0",
	         "location":"",
	         "timestamp":"2010-06-09 16:25:38",
	         "application":null,
	         "user":{
	            "id":"1",
	            "twitter_id":"16984249",
	            "username":"twitpicuser",
	            "name":"twitpicuser",
	            "location":"The Interwebs",
	            "website":"http:\/\/twitpic.com",
	            "bio":"Hi :)",
	            "avatar_url":"http:\/\/s.twimg.com\/a\/1278724399\/images\/default_profile_2_normal.png",
	            "profile_background_color":"9ae4e8",
	            "profile_text_color":"000000",
	            "profile_link_color":"0000ff",
	            "profile_sidebar_fill_color":"e0ff92",
	            "profile_background_image_url":"http:\/\/s.twimg.com\/a\/1278724399\/images\/themes\/theme1\/bg.png",
	            "profile_background_tile":"0",
	            "utc_offset":"-21600",
	            "geo_enabled":"1",
	            "public_updates":"0",
	            "public_tagging":"1",
	            "banned":"0",
	            "timestamp":"2010-06-10 16:00:04",
	            "events":null,
	            "images":null,
	            "places":null
	         },
	         "faces":null,
	         "comments":null,
	         "events":null
	      }
	   ]
	}	

Example CURL Command

	curl -v "http://api.twitpic.com/2/event/show.json?id=1"