StarterTemplate ASP.NET Host

<back to all web services

TwitterFriends

The following routes are available for this service:
All Verbs/twitter/{ScreenName}/friends
All Verbs/twitter/id/{UserId}/friends

To override the Content-type in your clients HTTP Accept Header, append ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/TwitterFriends HTTP/1.1 
Host: bootstrapapi.apphb.com 
Content-Type: text/jsv
Content-Length: length

{
	userId: String,
	screenName: String,
	skip: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	results: 
	[
		{
			name: String,
			profile_sidebar_border_color: String,
			profile_background_tile: String,
			profile_sidebar_fill_color: String,
			created_at: String,
			profile_image_url: String,
			profile_link_color: String,
			follow_request_sent: False,
			location: String,
			url: String,
			favourites_count: 0,
			contributors_enabled: False,
			utc_offset: String,
			id: String,
			profile_use_background_image: String,
			profile_text_color: String,
			protected: False,
			followers_count: 0,
			lang: String,
			verified: False,
			profile_background_color: String,
			geo_enabled: False,
			notifications: False,
			description: String,
			time_zone: String,
			friends_count: 0,
			statuses_count: 0,
			profile_background_image_url: String,
			status: 
			{
				id: 0,
				in_reply_to_status_id: 0,
				retweeted: False,
				truncated: False,
				created_at: String,
				in_reply_to_user_id: 0,
				in_reply_to_screen_name: String,
				user: 
				{
					name: String,
					profile_sidebar_border_color: String,
					profile_background_tile: String,
					profile_sidebar_fill_color: String,
					created_at: String,
					profile_image_url: String,
					profile_link_color: String,
					location: String,
					url: String,
					favourites_count: 0,
					contributors_enabled: False,
					utc_offset: String,
					id: String,
					profile_use_background_image: String,
					profile_text_color: String,
					protected: False,
					followers_count: 0,
					lang: String,
					verified: False,
					profile_background_color: String,
					geo_enabled: False,
					notifications: False,
					description: String,
					time_zone: String,
					friends_count: 0,
					statuses_count: 0,
					profile_background_image_url: String,
					screen_name: String
				},
				entities: 
				{
					media: 
					[
						{
							media_url: String,
							media_url_https: String,
							url: String,
							display_url: String,
							expanded_url: String,
							sizes: 
							{
								String: 
								{
									w: 0,
									h: 0,
									resize: String
								}
							},
							type: String,
							indices: 
							[
								0
							]
						}
					],
					urls: 
					[
						{
							url: String,
							display_url: String,
							expanded_url: String,
							indices: 
							[
								0
							]
						}
					],
					user_mentions: 
					[
						{
							id: 0,
							id_str: String,
							name: String,
							screen_name: String,
							indices: 
							[
								0
							]
						}
					],
					hashtags: 
					[
						{
							text: String,
							indicies: 
							[
								0
							]
						}
					]
				},
				favorited: False,
				source: String,
				retweet_count: String,
				text: String,
				geo: 
				{
					type: String,
					coordinates: 
					[
						0
					]
				},
				coordinates: 
				{
					type: String,
					coordinates: 
					[
						0
					]
				}
			},
			screen_name: String,
			following: False
		}
	]
}