vb6 - where to find twittervb2.dll or twittervb.dll?


#1

The below function causes a “401 error - invalid username or password”. The codeplex page for the twittervb.dll is non existent… Does anyone know where you can find the dll to download?

Thanks.

Private Sub sendTweet()

    Using Twitter As New WebClient
        Twitter.Credentials = New NetworkCredential("vvvv.com", "vvvv")
        ServicePointManager.Expect100Continue = False
        Dim MyTweet = System.Text.Encoding.UTF8.GetBytes("status=" & "hello")
        Try

            Twitter.UploadData("https://api.twitter.com/1/statuses/update.xml", MyTweet)
            MsgBox("Your message has been posted")
        Catch ex As Exception
            MsgBox("The message can't be updated, Check your Username/Password.")
        End Try
    End Using

End Sub

#2

It appears that the code you’re working with is outdated and using a form of authentication no longer supported by the Twitter API. You may want to take a look at http://www.twitterizer.net/ instead.


#3

Thanks for the reply! I took a quick look at the twitterizer documentation and I think that i will be able to make it work. Thanks again.


#4

OAuthTokens tokens = new OAuthTokens(); tokens.AccessToken = “XXX”; tokens.AccessTokenSecret = “XXX”; tokens.ConsumerKey = “XXX”; tokens.ConsumerSecret = “XXX”;

TwitterResponse showUserResponse = TwitterUser.Show(tokens, “twit_er_izer”); if (showUserResponse.Result == RequestResult.Success) { DisplayUserDetails(showUserResponse.ResponseObject); } else {


#5

How can i create my twitter application?