StarterTemplate ASP.NET Host

<back to all web services

TwitterTimelines

The following routes are available for this service:
All Verbs/api/twitter/{ScreenName}/timelines
TwitterTimelines Parameters:
NameParameterData TypeRequiredDescription
ScreenNamepathstringNo
Takequeryint?No
SinceIdquerystringNo
MaxIdquerystringNo
TwitterTimelinesResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformList<Tweet>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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/TwitterTimelines HTTP/1.1 
Host: bootstrapapi.servicestack.net 
Content-Type: application/json
Content-Length: length

{"screenName":"String","take":0,"sinceId":"String","maxId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"results":[{"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]}}]}