我现在每天都收到推特提要。我正在使用 tweetinvi Api,我的代码只获取最新的 200 个提要,并且我想要全部。
我的代码是公共函数 getTweets()
''Set the credentials
Dim lObjConsumerKey As String = "[REDACTED]"
Dim lObjConsumerSecret As String = "[REDACTED]"
Dim lObjUserAccessToken As String = "[REDACTED]"
Dim lObjUserAccessSecret As String = "[REDACTED]"
Auth.SetUserCredentials(lObjConsumerKey, lObjConsumerSecret, lObjUserAccessToken, lObjUserAccessSecret)
Dim lObjDataTable As New DataTable
lObjDataTable.Columns.Add("Tweets")
lObjDataTable.Columns.Add("CreatedAt")
Dim GetTimelineTweets = Timeline.GetUserTimeline(txtUserName.Text)
For Each lobjGetgetTweets In GetTimelineTweets
Dim drNew = lObjDataTable.NewRow
drNew("Tweets") = lobjGetgetTweets
drNew("CreatedAt") = lobjGetgetTweets.CreatedAt
lObjDataTable.Rows.Add(drNew)
Next
Return lObjDataTable
End Function