{"action":"created","issue":{"url":"https://api.github.com/repos/lucaswerkmeister/corebird/issues/2","repository_url":"https://api.github.com/repos/lucaswerkmeister/corebird","labels_url":"https://api.github.com/repos/lucaswerkmeister/corebird/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/lucaswerkmeister/corebird/issues/2/comments","events_url":"https://api.github.com/repos/lucaswerkmeister/corebird/issues/2/events","html_url":"https://github.com/lucaswerkmeister/corebird/issues/2","id":365224092,"node_id":"MDU6SXNzdWUzNjUyMjQwOTI=","number":2,"title":"Investigate optimal heartbeat interval for avoiding Too Many Requests errors","user":{"login":"lucaswerkmeister","id":2346599,"node_id":"MDQ6VXNlcjIzNDY1OTk=","avatar_url":"https://avatars0.githubusercontent.com/u/2346599?v=4","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"labels":[{"id":1074411626,"node_id":"MDU6TGFiZWwxMDc0NDExNjI2","url":"https://api.github.com/repos/lucaswerkmeister/corebird/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-30T13:18:48Z","updated_at":"2018-11-11T13:13:26Z","closed_at":null,"author_association":"OWNER","body":"To fix #1, I bumped the heartbeat interval from 45 seconds to 2 minutes, which is really just an arbitrary guess (though one that seems to work well in practice). Perhaps Twitter has some information on how frequently you’re allowed to make API calls? Otherwise we could experiment if e. g. 1½ minutes would also work."},"comment":{"url":"https://api.github.com/repos/lucaswerkmeister/corebird/issues/comments/437669239","html_url":"https://github.com/lucaswerkmeister/corebird/issues/2#issuecomment-437669239","issue_url":"https://api.github.com/repos/lucaswerkmeister/corebird/issues/2","id":437669239,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzY2OTIzOQ==","user":{"login":"lucaswerkmeister","id":2346599,"node_id":"MDQ6VXNlcjIzNDY1OTk=","avatar_url":"https://avatars0.githubusercontent.com/u/2346599?v=4","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"created_at":"2018-11-11T13:13:26Z","updated_at":"2018-11-11T13:13:26Z","author_association":"OWNER","body":"According to [this documentation](https://developer.twitter.com/en/docs/basics/rate-limiting.html), the rate limit is 15 requests per 15 minutes, so we could theoretically decrease the heartbeat interval to 60 seconds. However, the rate limit probably counts more requests than just the ones we do on each “heartbeat” (e. g. liking or favoriting a tweet, or loading its details, probably takes up a request?), so perhaps it’s better to stay on the safer side with 2 minutes."}}
{"actor":{"display_login":"lucaswerkmeister"}}