Git Product home page Git Product logo

Comments (4)

seghcder avatar seghcder commented on July 19, 2024

Got it working... I now realise what impact the Twitter rate limit has, and why you set polling interval to 49 seconds. 15 requests per 15 mins! It doesn't really allow for a 'conversational' experience. Not a ProgramY issue - common to any bot using Twitter REST APIs.

Seems a replacement API is coming but you have to request access to the BETA, and will require externally accessible host with TLS: Account Activity API

Does the Facebook API have the same issue re 30 second polling?

from program-y.

keiffster avatar keiffster commented on July 19, 2024

As you have found out the Twitter client does limit what you can do, but you'd be surprised what you can get away with. Each request is for all transactions, so a single call to get DMs or Follows brings all since the last call. You can reduce the polling interval to 30 and it still works, however during development its better to have a longer one as not to run into rate limits. I have run productions systems this way in the past with no issue from customers

The code I have does start to implement the streaming API, but is not finished. As you say it needs TLS and pass through your firewall, given the rate of development its a lot of effort at the moment, and very difficult on a train each morning and evening;-) so its on the backlog, just not got round to finishing it

from program-y.

seghcder avatar seghcder commented on July 19, 2024

Understood ... I can use Twitter for demo and am still keen to see Skype for business sometime soonish. I suspect it will be similar (as in server push vs polling) so hopefully there is some leverage.

I understand that it may need to wait until post 1.0 as its still just another client though. We need your brains on the bot brain :-)

from program-y.

keiffster avatar keiffster commented on July 19, 2024

Added comments to the documentation, as no issue closing for now

from program-y.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.