Twitter Api - c# or VB Translate

Twitter Api - c# or VB Translate

Postby norberto » Mon May 07, 2012 12:24 pm

HI, someone can help to translate this code in C# or VB to (x)harbour / FWH, with this , we can send Twitter from our appl , using this open source : http://code.google.com/p/twitterizer/ or here : http://nuget.org/packages/twitterizer

login (credential):

// C#
Twitter twit = new Twitter(username, password);

' VB
Dim twit As New Twitter(username, password)


Read Twitter:

// C#
Twitter twit = new Twitter(username, password);
TwitterStatusCollection tweets = twit.Status.UserTimeline();

' VB
Dim twit As New Twitter(username, password)
Dim tweets As TwitterStatusCollection = twit.Status.UserTimeline()

Update Twitter:

// C#
Twitter twit = new Twitter(username, password);
twit.Status.Update(tweet_text);

' VB
Dim twit As New Twitter(username, password)
twit.Status.Update(tweet_text)

Make Twitter:

// C#
Twitter twit = new Twitter(username, password);
twit.Status.Update(txtTweet.Text.Trim());

' VB
Dim twit As New Twitter(username, password)
twit.Status.Update(txtTweet.Text.Trim())

Thanks
norberto
 
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 97 guests