StarterTemplate ASP.NET Host

<back to all web services

TwitterFriends

The following routes are available for this service:
All Verbs/api/twitter/{ScreenName}/friends
All Verbs/api/twitter/id/{UserId}/friends
TwitterFriends Parameters:
NameParameterData TypeRequiredDescription
UserIdpathstringNo
ScreenNamepathstringNo
SkipqueryintNo
TwitterFriendsResponse 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 .xml suffix or ?format=xml

HTTP + XML

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

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

<TwitterFriends xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SocialBootstrapApi.ServiceInterface">
  <ScreenName>String</ScreenName>
  <Skip>0</Skip>
  <UserId>String</UserId>
</TwitterFriends>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<TwitterFriendsResponse 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:TwitterUser>
      <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:follow_request_sent>false</d2p1:follow_request_sent>
      <d2p1:followers_count>0</d2p1:followers_count>
      <d2p1:following>false</d2p1:following>
      <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:status>
        <d2p1:coordinates>
          <d2p1:coordinates xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:double>0</d6p1: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:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:int>0</d8p1: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:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:int>0</d8p1:int>
              </d2p1:indices>
              <d2p1:media_url>String</d2p1:media_url>
              <d2p1:media_url_https>String</d2p1:media_url_https>
              <d2p1:sizes xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:KeyValueOfstringSizeEntityljnKI3_PG>
                  <d8p1:Key>String</d8p1:Key>
                  <d8p1:Value>
                    <d2p1:h>0</d2p1:h>
                    <d2p1:resize>String</d2p1:resize>
                    <d2p1:w>0</d2p1:w>
                  </d8p1:Value>
                </d8p1: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:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:int>0</d8p1: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:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:int>0</d8p1: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:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:double>0</d6p1: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:status>
      <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:TwitterUser>
  </Results>
</TwitterFriendsResponse>