AprilSuna / TwitterDashboard

Spec2
1 stars 3 forks source link

TODO10/10 Streaming Api #27

Closed AprilSuna closed 5 years ago

AprilSuna commented 5 years ago

Using Streaming Api listen to users:

  1. Whether they mute someone (add to our training data)
  2. Whether they have new reply (if had --> using our training model detective --> give score to certain user)
ke11ysun commented 5 years ago

tried account activity api with ngrok, able to subscribe my own account, haven't tested oauth/callback atm there's a webhook connected (from the python repo) python3 example-scripts/create-webhook.py kellyhook https://54b74492.ngrok.io/webhook 200 [{"id":"1183807718034939906","url":"https://54b74492.ngrok.io/webhook","valid":true,"created_timestamp":"2019-10-14 18:12:08 +0000"}] cannot use ngrok to tunnel anymore, dunno why, so fail to delete the webhook and do further testing but i dunno how to thread and conveniently start/stop webhook anyway, so im thinking continuing with streaming api (and yiqing didn't seem to use aa api either)

ke11ysun commented 5 years ago

regenerated keys haven't been updated

ke11ysun commented 5 years ago

reverse to streaming api (hooray) but need to periodically update mute list