StarterTemplate ASP.NET Host

<back to all web services

TwitterUsers

The following routes are available for this service:
All Verbs/api/twitter/ids/{UserIds}
All Verbs/api/twitter/{ScreenNames}
TwitterUsers Parameters:
NameParameterData TypeRequiredDescription
UserIdspathList<string>No
ScreenNamespathList<string>No
TwitterUsersResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformList<TwitterUser>No
TwitterUser Parameters:
NameParameterData TypeRequiredDescription
nameformstringNo
profile_sidebar_border_colorformstringNo
profile_background_tileformstringNo
profile_sidebar_fill_colorformstringNo
created_atformstringNo
profile_image_urlformstringNo
profile_link_colorformstringNo
follow_request_sentformbool?No
locationformstringNo
urlformstringNo
favourites_countformintNo
contributors_enabledformboolNo
utc_offsetformstringNo
idformstringNo
profile_use_background_imageformstringNo
profile_text_colorformstringNo
protectedformboolNo
followers_countformintNo
langformstringNo
verifiedformboolNo
profile_background_colorformstringNo
geo_enabledformboolNo
notificationsformbool?No
descriptionformstringNo
time_zoneformstringNo
friends_countformintNo
statuses_countformintNo
profile_background_image_urlformstringNo
statusformTweetNo
screen_nameformstringNo
followingformbool?No
Tweet Parameters:
NameParameterData TypeRequiredDescription
idformulongNo
in_reply_to_status_idformulong?No
retweetedformboolNo
truncatedformboolNo
created_atformstringNo
in_reply_to_user_idformulong?No
in_reply_to_screen_nameformstringNo
userformTweetUserNo
entitiesformTweetEntitiesNo
favoritedformboolNo
sourceformstringNo
retweet_countformstringNo
textformstringNo
geoformGeoPointNo
coordinatesformGeoPointNo
TweetUser Parameters:
NameParameterData TypeRequiredDescription
nameformstringNo
profile_sidebar_border_colorformstringNo
profile_background_tileformstringNo
profile_sidebar_fill_colorformstringNo
created_atformstringNo
profile_image_urlformstringNo
profile_link_colorformstringNo
locationformstringNo
urlformstringNo
favourites_countformintNo
contributors_enabledformboolNo
utc_offsetformstringNo
idformstringNo
profile_use_background_imageformstringNo
profile_text_colorformstringNo
protectedformboolNo
followers_countformintNo
langformstringNo
verifiedformboolNo
profile_background_colorformstringNo
geo_enabledformboolNo
notificationsformbool?No
descriptionformstringNo
time_zoneformstringNo
friends_countformintNo
statuses_countformintNo
profile_background_image_urlformstringNo
screen_nameformstringNo
TweetEntities Parameters:
NameParameterData TypeRequiredDescription
mediaformMediaEntity[]No
urlsformUrlEntity[]No
user_mentionsformUserMentionEntity[]No
hashtagsformHashTagEntity[]No
MediaEntity Parameters:
NameParameterData TypeRequiredDescription
media_urlformstringNo
media_url_httpsformstringNo
urlformstringNo
display_urlformstringNo
expanded_urlformstringNo
sizesformDictionary<string, SizeEntity>No
typeformstringNo
indicesformint[]No
SizeEntity Parameters:
NameParameterData TypeRequiredDescription
wformintNo
hformintNo
resizeformstringNo
UrlEntity Parameters:
NameParameterData TypeRequiredDescription
urlformstringNo
display_urlformstringNo
expanded_urlformstringNo
indicesformint[]No
UserMentionEntity Parameters:
NameParameterData TypeRequiredDescription
idformulongNo
id_strformstringNo
nameformstringNo
screen_nameformstringNo
indicesformint[]No
HashTagEntity Parameters:
NameParameterData TypeRequiredDescription
textformstringNo
indiciesformint[]No
GeoPoint Parameters:
NameParameterData TypeRequiredDescription
typeformstringNo
coordinatesformdouble[]No

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?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/TwitterUsers HTTP/1.1 
Host: bootstrapapi.servicestack.net 
Content-Type: text/jsv
Content-Length: length

{
	userIds: 
	[
		String
	],
	screenNames: 
	[
		String
	]
}
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
		}
	]
}