I'm trying to add the ability to post tweets from one of my apps.
I'm using the LinqToTwitter library and have read all the examples i can seem to find, but cannot get it working. Can someone point me in the right direction?
Heres my code...
Imports LinqToTwitter
Imports LinqToTwitter
Public Class StatusUpdate
Dim consumerkey As String = "n-BLAH-BLAH-BLAH-BLAH-VA"
Dim ConsumerSecret As String = "5o-BLAH-BLAH-BLAH-BLAH-o"
Dim OAuthToken As String = "8-BLAH-BLAH-BLAH-BLAH-tK"
Dim AccessToken As String = "E6-BLAH-BLAH-BLAH-BLAH-8T"
Public twitterctx As TwitterContext
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim credentials As IOAuthCredentials = New InMemoryCredentials
credentials.ConsumerKey = consumerkey
credentials.ConsumerSecret = ConsumerSecret
credentials.OAuthToken = OAuthToken
credentials.AccessToken = AccessToken
Dim auth As PinAuthorizer = New PinAuthorizer()
auth.Credentials = credentials
Dim twitterCtx As TwitterContext = New TwitterContext(auth)
twitterCtx.UpdateStatus(tweetbody.Text)
End Sub
End Class
Thats what I've put together based on several examples and, from what I can tell, it should be right, but there are a few errors...
- Type 'IOAuthCredentials' is not defined.
- Type 'InMemoryCredentials' is not defined.
- Credentials is not a member of Pin Authorizer.
- 'UpdateStatus' is not a member of 'TwitterContext'.
The scarce few examples that are around are not getting me anywhere and I'm kinda hitting a brick wall.
Any help anyone can offer is greatly appriciated.