StarterTemplate ASP.NET Host

<back to all web services

TwitterTweets

TwitterTweets Parameters:
NameParameterData TypeRequiredDescription
ScreenNamepathstringNo
Takequeryint?No
SinceIdquerystringNo
MaxIdquerystringNo
TwitterTweetsResponse 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 .soap12 suffix or ?format=soap12

HTTP + SOAP12

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

POST /soap12 HTTP/1.1 
Host: bootstrapapi.servicestack.net 
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<TwitterTweets xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SocialBootstrapApi.ServiceInterface">
  <MaxId>String</MaxId>
  <ScreenName>String</ScreenName>
  <SinceId>String</SinceId>
  <Take>0</Take>
</TwitterTweets>

    </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>

<TwitterTweetsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SocialBootstrapApi.ServiceInterface">
  <Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/ChaweetApi.ServiceModel">
    <d2p1:Tweet>
      <d2p1:coordinates>
        <d2p1:coordinates xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:double>0</d5p1:double>
        </d2p1:coordinates>
        <d2p1:type>String</d2p1:type>
      </d2p1:coordinates>
      <d2p1:created_at>String</d2p1:created_at>
      <d2p1:entities>
        <d2p1:hashtags>
          <d2p1:HashTagEntity>
            <d2p1:indicies xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d2p1:indicies>
            <d2p1:text>String</d2p1:text>
          </d2p1:HashTagEntity>
        </d2p1:hashtags>
        <d2p1:media>
          <d2p1:MediaEntity>
            <d2p1:display_url>String</d2p1:display_url>
            <d2p1:expanded_url>String</d2p1:expanded_url>
            <d2p1:indices xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d2p1:indices>
            <d2p1:media_url>String</d2p1:media_url>
            <d2p1:media_url_https>String</d2p1:media_url_https>
            <d2p1:sizes xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:KeyValueOfstringSizeEntityljnKI3_PG>
                <d7p1:Key>String</d7p1:Key>
                <d7p1:Value>
                  <d2p1:h>0</d2p1:h>
                  <d2p1:resize>String</d2p1:resize>
                  <d2p1:w>0</d2p1:w>
                </d7p1:Value>
              </d7p1:KeyValueOfstringSizeEntityljnKI3_PG>
            </d2p1:sizes>
            <d2p1:type>String</d2p1:type>
            <d2p1:url>String</d2p1:url>
          </d2p1:MediaEntity>
        </d2p1:media>
        <d2p1:urls>
          <d2p1:UrlEntity>
            <d2p1:display_url>String</d2p1:display_url>
            <d2p1:expanded_url>String</d2p1:expanded_url>
            <d2p1:indices xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d2p1:indices>
            <d2p1:url>String</d2p1:url>
          </d2p1:UrlEntity>
        </d2p1:urls>
        <d2p1:user_mentions>
          <d2p1:UserMentionEntity>
            <d2p1:id>0</d2p1:id>
            <d2p1:id_str>String</d2p1:id_str>
            <d2p1:indices xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d2p1:indices>
            <d2p1:name>String</d2p1:name>
            <d2p1:screen_name>String</d2p1:screen_name>
          </d2p1:UserMentionEntity>
        </d2p1:user_mentions>
      </d2p1:entities>
      <d2p1:favorited>false</d2p1:favorited>
      <d2p1:geo>
        <d2p1:coordinates xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:double>0</d5p1:double>
        </d2p1:coordinates>
        <d2p1:type>String</d2p1:type>
      </d2p1:geo>
      <d2p1:id>0</d2p1:id>
      <d2p1:in_reply_to_screen_name>String</d2p1:in_reply_to_screen_name>
      <d2p1:in_reply_to_status_id>0</d2p1:in_reply_to_status_id>
      <d2p1:in_reply_to_user_id>0</d2p1:in_reply_to_user_id>
      <d2p1:retweet_count>String</d2p1:retweet_count>
      <d2p1:retweeted>false</d2p1:retweeted>
      <d2p1:source>String</d2p1:source>
      <d2p1:text>String</d2p1:text>
      <d2p1:truncated>false</d2p1:truncated>
      <d2p1:user>
        <d2p1:contributors_enabled>false</d2p1:contributors_enabled>
        <d2p1:created_at>String</d2p1:created_at>
        <d2p1:description>String</d2p1:description>
        <d2p1:favourites_count>0</d2p1:favourites_count>
        <d2p1:followers_count>0</d2p1:followers_count>
        <d2p1:friends_count>0</d2p1:friends_count>
        <d2p1:geo_enabled>false</d2p1:geo_enabled>
        <d2p1:id>String</d2p1:id>
        <d2p1:lang>String</d2p1:lang>
        <d2p1:location>String</d2p1:location>
        <d2p1:name>String</d2p1:name>
        <d2p1:notifications>false</d2p1:notifications>
        <d2p1:profile_background_color>String</d2p1:profile_background_color>
        <d2p1:profile_background_image_url>String</d2p1:profile_background_image_url>
        <d2p1:profile_background_tile>String</d2p1:profile_background_tile>
        <d2p1:profile_image_url>String</d2p1:profile_image_url>
        <d2p1:profile_link_color>String</d2p1:profile_link_color>
        <d2p1:profile_sidebar_border_color>String</d2p1:profile_sidebar_border_color>
        <d2p1:profile_sidebar_fill_color>String</d2p1:profile_sidebar_fill_color>
        <d2p1:profile_text_color>String</d2p1:profile_text_color>
        <d2p1:profile_use_background_image>String</d2p1:profile_use_background_image>
        <d2p1:protected>false</d2p1:protected>
        <d2p1:screen_name>String</d2p1:screen_name>
        <d2p1:statuses_count>0</d2p1:statuses_count>
        <d2p1:time_zone>String</d2p1:time_zone>
        <d2p1:url>String</d2p1:url>
        <d2p1:utc_offset>String</d2p1:utc_offset>
        <d2p1:verified>false</d2p1:verified>
      </d2p1:user>
    </d2p1:Tweet>
  </Results>
</TwitterTweetsResponse>

    </soap12:Body>
</soap12:Envelope>