Posts

Showing posts from February, 2010

CsharpTwitt - REST API Methods (Status Methods)

Show Statuses method support XML and JSON format. Returns a single status, specified by the id parameter below. The status's author will be returned inline. Requires Authentication : false, unless the author of the status is protected Example Twitter.PublicTwitt pubTwitt = new Twitter.PublicTwitt(); Twitter.UserTwitt userTwitt = new Twitter.UserTwitt(); string strResult = ""; XmlDocument xmlResult = null; string strUsername = "TwitterUsername"; string strPassword = "TwitterPassword"; string strStatusIDtoRetrieve = "<Numeric Status Id>"; strResult = pubTwitt.Show_Status(strStatusIDtoRetrieve, Twitter.OutputFormatType.xml); xmlResult = pubTwitt.Show_StatusAsXML(strStatusIDtoRetrieve); strResult = pubTwitt.Show_StatusAsJSON(strStatusIDtoRetrieve); //With Authentication strResult = userTwitt.Show_Status(strUsername, strPassword, strStatusIDtoRetrieve, Twitter.OutputFormatType.xml); xmlResult = userTwitt.Show_StatusAsXML(

CsharpTwitt - REST API Methods (Timeline Methods)

Public Timeline method support XML, RSS, JSON and ATOM format. Returns the 20 most recent statuses from non-protected users who have set a custom user icon. The public timeline is cached for 60 seconds so requesting it more often than that is a waste of resources. Requires Authentication : false Example Twitter.PublicTwitt pubTwitt = new Twitter.PublicTwitt(); string strResult = ""; XmlDocument xmlResult = null; strResult = pubTwitt.GetPublicTimeline(Twitter.OutputFormatType.xml); strResult = pubTwitt.GetPublicTimelineAsJSON(); xmlResult = pubTwitt.GetPublicTimelineAsXML(); xmlResult = pubTwitt.GetPublicTimelineAsAtom(); xmlResult = pubTwitt.GetPublicTimelineAsRSS(); Home Timeline method support XML, JSON and ATOM format. Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web. Requires Authentication : true Example Twitter.UserTwitt userTwitt = new Twitter.User

CsharpTwitt - Search API Methods

Example Search methods support only JSON and ATOM format. Requires Authentication : false Twitter.PublicTwitt pubTwitt = new Twitter.PublicTwitt(); string strResult = ""; XmlDocument xmlResult = null; strResult= pubTwitt.GetSearchResult("SearchTextAsString", true, Twitter.OutputFormatType.json); xmlResult = pubTwitt.GetSearchResultAsAtom("SearchTextAsString", true); Trends methods support only JSON format. Requires Authentication : false strResult = pubTwitt.GetTrendsResultAsJSON(Twitter.Trends.trendstype.top); strResult = pubTwitt.GetTrendsResultAsJSON(Twitter.Trends.trendstype.current); strResult = pubTwitt.GetTrendsResultAsJSON(Twitter.Trends.trendstype.weekly); strResult = pubTwitt.GetTrendsResultAsJSON(Twitter.Trends.trendstype.daily);