StarterTemplate ASP.NET Host

<back to all web services

TwitterDirectMessages

The following routes are available for this service:
All Verbs/api/twitter/directmessages
TwitterDirectMessages Parameters:
NameParameterData TypeRequiredDescription
Takequeryint?No
SinceIdquerystringNo
MaxIdquerystringNo
TwitterDirectMessagesResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformList<DirectMessage>No
DirectMessage Parameters:
NameParameterData TypeRequiredDescription
idformulongNo
created_atformstringNo
sender_screen_nameformstringNo
senderformTweetUserNo
recipientformTweetUserNo
recipient_idformulongNo
sender_idformulongNo
recipient_screen_nameformstringNo
textformstringNo
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

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/TwitterDirectMessages HTTP/1.1 
Host: bootstrapapi.servicestack.net 
Content-Type: text/jsv
Content-Length: length

{
	take: 0,
	sinceId: String,
	maxId: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	results: 
	[
		{
			id: 0,
			created_at: String,
			sender_screen_name: String,
			sender: 
			{
				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
			},
			recipient: 
			{
				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
			},
			recipient_id: 0,
			sender_id: 0,
			recipient_screen_name: String,
			text: String
		}
	]
}