What's the best C# Twitter API for a twitter bot

前端 未结 6 2036
星月不相逢
星月不相逢 2020-12-13 19:41

I\'m writing a C# app that will be required to integrate with twitter, I need to be able to do the following:

  • send direct messages
  • read all messages t
6条回答
  •  一生所求
    2020-12-13 20:03

    Here is a better option if you are after a light-weight solution.

    I wrote a Twitter Bot in C# for @valuetraderteam, it runs a heartbeat on a schedule and performs GET/POST actions to send website related tweets and add/remove friends from my list.

    The API component in the GIST below is less than 500 lines, should be easy enough to add it to any project, only dependency is Json.NET which you might already have installed.

    https://gist.github.com/sdesalas/c82b92200816ecc83af1

    Hopefully this is useful to some other people out there.

提交回复
热议问题