prabhjas / chirpradio

Automatically exported from code.google.com/p/chirpradio
0 stars 0 forks source link

Connect @chirpplaylist Twitter account w/ playlist API #245

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As a Twitter user I want the @CHIRPplaylist feed to be reconnected to the 
playlist API so that I can see a real-time feed of playlist info. 

This existed until recently. We need to reset it by polling CHIPR playlist API 
found at https://code.google.com/p/chirpradio/wiki/TheChirpApi.

See https://twitter.com/CHIRPPlaylist for how feature performed previously.

NOTE: May want to deploy a custom service that pulls from the playlist API and 
posts to the Twitter API on Rackspace.

Original issue reported on code.google.com by sh...@chirpradio.org on 5 Aug 2014 at 2:03

GoogleCodeExporter commented 9 years ago
How/where does the Twitter account connect to the API? I don't see any 
references to posting to Twitter in Git anywhere.

Original comment by jonathan...@gmail.com on 8 Aug 2014 at 11:47

GoogleCodeExporter commented 9 years ago
Connecting to the Twitter API is new development. Nothing like that exists yet. 
The idea with this feature request is to build a new, standalone service that 
polls the CHIRP playlist API (which exists) then posts to the Twitter API. The 
service will then be deployed and hosted on a CHIRP server so that it runs 
continuously.

Original comment by kumar.mcmillan on 9 Aug 2014 at 2:08

GoogleCodeExporter commented 9 years ago
Thanks Kumar. So the Twitter account that Shawn linked to in her first post was 
updated manually? It doesn't look like it.

Original comment by jonathan...@gmail.com on 9 Aug 2014 at 3:58

GoogleCodeExporter commented 9 years ago
The feed had been pulling data from the tool Kyle built. When he exited the 
organization, he took that tool down, which means we need to recreate the feed 
directly from the playlist API.

Original comment by sh...@chirpradio.org on 9 Aug 2014 at 4:35

GoogleCodeExporter commented 9 years ago
I'll tackle this.

Original comment by chris.ag...@gmail.com on 28 Sep 2014 at 7:35

GoogleCodeExporter commented 9 years ago

Original comment by chris.ag...@gmail.com on 28 Sep 2014 at 7:37

GoogleCodeExporter commented 9 years ago
Is there a compelling reason why an update_twitter() method can't be dropped 
into chirpradio.playlists.models.PlaylistTrack and invoked on put()? 

Original comment by chris.ag...@gmail.com on 28 Sep 2014 at 9:19

GoogleCodeExporter commented 9 years ago
Not at all. I think it would be fine to update twitter with the task pipeline 
approach that already exists. You'd just need to add a new listener like the 
one that posts track data to the live site: 
https://github.com/chirpradio/chirpradio/blob/master/playlists/tasks.py#L57

Original comment by kumar.mcmillan on 29 Sep 2014 at 4:24