Cannot access methods?

Jan 16, 2013 at 5:27 PM

HI Joe,


Hopefully I'm not overlooking something simple, but TwitterContext seems to have no access to methods which post, such as CreateFriendship() or UpdateStatus(). I can, however, query for information, such as Friendship status:

Public Shared Function HasFriendship(ByVal userA As String, ByVal userB As String) As Boolean
        Dim auth As ltt.WebAuthorizer = New ltt.WebAuthorizer()
        auth.Credentials = New ltt.SessionStateCredentials()
        Dim twitterCtx As ltt.TwitterContext = New ltt.TwitterContext(auth)
        Dim friendship = (From [friend] In twitterCtx.Friendship
                          Where ([friend].Type = ltt.FriendshipType.Show AndAlso [friend].SourceScreenName = userA AndAlso [friend].TargetScreenName = userB)
                          Select [friend]).First()

        Return friendship.SourceRelationship.Following
End Function

But twitterCtx doesn't recognize the previously mentioned methods. Any thoughts would be much appreciated.

 

Thanks.

Coordinator
Jan 16, 2013 at 11:14 PM

Hi,

Are you able to run the VB samples from the downloadable source code?

@JoeMayo