Skip to content

Instantly share code, notes, and snippets.

@karno
Created July 24, 2010 14:07
Show Gist options
  • Save karno/488709 to your computer and use it in GitHub Desktop.
Save karno/488709 to your computer and use it in GitHub Desktop.
private void Func()
{
var b = new Basic("User_id", "User_pw");
StreamingApi.OnReceivedStatus += new Action<TwitterStatus>(StreamingApi_OnReceivedStatus);
b.BeginStreaming(StreamingApi.StreamingType.filter, track: "Keywords");
}
void StreamingApi_OnReceivedStatus(TwitterStatus obj)
{
this.Invoke(new Action<string, string>((u, t) => listView1.Items.Add(new ListViewItem(new[] { u, t }))), obj.User.ScreenName, obj.Text);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment