I am using Linq2twitter library in Visual Basics to build a twitter app that will monitor my twitter feed and communicate with my Arduino (via COM) to perform a certain action whenever i tweet something!! I am new to Visual Basics and Application Programming Interface so i am trying to learn from the basics!! After hard work and research I created a simple GUI(having a button and a richtextbox) wrote some codes and i was able to tweet!! My 1st code was something like this
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim credentials As IOAuthCredentials = New InMemoryCredentials
credentials.ConsumerKey = "xxxx"
credentials.ConsumerSecret = "xxxx"
credentials.OAuthToken = "xxxx"
credentials.AccessToken = "xxxxx"
Dim auth As PinAuthorizer = New PinAuthorizer()
auth.Credentials = credentials
Dim twitterCtx As TwitterContext = New TwitterContext(auth)
twitterCtx.UpdateStatus(Box1.Text) 'Box1 is the richtextbox
End Sub
This code worked :)
Now i want a twitter homepage feed So after a long research i was able to write the following code
Dim auth As PinAuthorizer = New PinAuthorizer()
auth.Credentials = credentials
Dim twitterCtx As TwitterContext = New TwitterContext(auth)
Dim tweets = From tweet In twitterCtx.Status
Where tweet.Type = StatusType.Home
Now how do i make the "tweet" display on another textbox i made?? :S Will this code work?? There are very few examples of vb using Linq2twitter and having no idea of how this library is used made it a real pain in the butt to write these codes. And How am i doing?? Is this the write way?? How can i learn faster and better?? Please leave your suggestions!! And I found out twittervb.dll library was easier to use but it didn't work for me! I don't know why!! I got a flood of exception errors...and i have set my application settings to Read, Write and DirectMessages !! Thanks in advance :)