Adding Twitter support in Internet Services for Amarok

View: New views
7 Messages — Rating Filter:   Alert me  

Adding Twitter support in Internet Services for Amarok

by Ninad Pundalik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

A few days back, I'd visited the IRC channel to discuss this idea, of
integrating Twitter with the Internet Services framework in Amarok.
Due to college exams, I was unable to work on the idea, and hence,
this mail comes a little late.

I'd love to implement a feature similar to the Last.fm Love a track,
where the user can click on a button and their Twitter profile will
get updated with the track info for the song that is being played
currently (i.e., we post a tweet :) ).  The simplest way to implement
this, would be to create a Scripted Service.  Correct me if I am wrong
here, but this will post every song that the user listens to, which
will be spamming his timeline with tweets about his songs.  So that
would leave an option of writing a script/plugin similar to Last.fm,
which, as I mentioned above, will be triggered by the user.

I have done a little web development at an internship, so I have a
working knowledge of Javascript.  I also am well acquainted with the
Twitter API (though I admit it isn't too difficult/vast at the
moment).  I will need lots of help with the Amarok source, as I have
never worked in Qt, C++ and the KDE libraries :).  Please point me to
a few resources that I can start off with, so that I can understand
the necessary part of the code before I begin to actually write some
code.  Also, this is my first attempt at contributing to an open
source project, so please correct me when I screw up.  I've been a
happy user of Amarok for almost 2 years now, and would like to give
back to the community. :)

Thanx for all the help!

Ninad S. Pundalik
http://twitter.com/ninadsp

PS: At the moment, my idea is to implement this with Basic
Authentication for Twitter.  However, I also have a rough idea of how
to implement it with OAuth.  Will work on it as I figure out things
around here.
_______________________________________________
Amarok mailing list
Amarok@...
https://mail.kde.org/mailman/listinfo/amarok

Re: Adding Twitter support in Internet Services for Amarok

by Bugzilla from lydia@kde.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey :)

Did you already look at the Twitter script Ryan Paul wrote a while
back? It spams everything you listen to to Twitter which is kinda
annoying but I think it would be a good start to look at to give you
an idea about the very basics of how you can integrate with Amarok.


Cheers
Lydia

--
Lydia Pintscher
Amarok community manager
kde.org - amarok.kde.org - kubuntu.org
claimid.com/nightrose
_______________________________________________
Amarok mailing list
Amarok@...
https://mail.kde.org/mailman/listinfo/amarok

Re: Adding Twitter support in Internet Services for Amarok

by Kolja Dummann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

there is something like that in the twitter client choqok [1]. There
you can hit a Hot key or just click in the GUI and it tweets your
current track from amarok.

[1] http://choqok.gnufolks.org/

cheers Kolja.
_______________________________________________
Amarok mailing list
Amarok@...
https://mail.kde.org/mailman/listinfo/amarok

Parent Message unknown Re: Adding Twitter support in Internet Services for Amarok

by Ninad Pundalik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi :),

> Did you already look at the Twitter script Ryan Paul wrote a while
> back? It spams everything you listen to to Twitter which is kinda
> annoying but I think it would be a good start to look at to give you
> an idea about the very basics of how you can integrate with Amarok.
>
>
> Cheers
> Lydia

If you mean this -
http://arstechnica.com/open-source/news/2008/12/hands-on-amarok-2-rocks-the-house.ars
- then I saw it the moment I'd logged of IRC then.  We do agree that
it will spam, so it can't be a script that will work like the Last.fm
scrobbler.  Hence, gave the Track Love as the example.  More
appropriate :)

> there is something like that in the twitter client choqok [1]. There
> you can hit a Hot key or just click in the GUI and it tweets your
> current track from amarok.
>
> [1] http://choqok.gnufolks.org/
>
> cheers Kolja.

Ahh!  How didn't I notice this? I've used this client for sometime.
Or, it might be a recent feature. :)  I'll get the source code for
choqoK and understand it :).  We could plug it into the Amarok code if
we don't need too many modifications, or write it from scratch again.

I've read the wiki pages on the Script API, Scripting Howto 2.0 and
Scripted Services Tutorial 2.0.  I doubt this will be enough, but I
couldnt figure where to go after that.  So where do I go?

Thanx!
Ninad S. Pundalik
http://twitter.com/ninadsp
_______________________________________________
Amarok mailing list
Amarok@...
https://mail.kde.org/mailman/listinfo/amarok

Re: Adding Twitter support in Internet Services for Amarok

by Bugzilla from lydia@kde.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 8, 2009 at 11:25, Ninad Pundalik <ninadsp16289@...> wrote:

> Hi :),
>
>> Did you already look at the Twitter script Ryan Paul wrote a while
>> back? It spams everything you listen to to Twitter which is kinda
>> annoying but I think it would be a good start to look at to give you
>> an idea about the very basics of how you can integrate with Amarok.
>
> If you mean this -
> http://arstechnica.com/open-source/news/2008/12/hands-on-amarok-2-rocks-the-house.ars
> - then I saw it the moment I'd logged of IRC then.  We do agree that
> it will spam, so it can't be a script that will work like the Last.fm
> scrobbler.  Hence, gave the Track Love as the example.  More
> appropriate :)

Hehe ok. Great.


> I've read the wiki pages on the Script API, Scripting Howto 2.0 and
> Scripted Services Tutorial 2.0.  I doubt this will be enough, but I
> couldnt figure where to go after that.  So where do I go?

Unfortunately Nikolaj just went off to Amsterdam but he'll be back in
a few days. Meanwhile hopefully other people here can help you.


Cheers
Lydia

--
Lydia Pintscher
Amarok community manager
kde.org - amarok.kde.org - kubuntu.org
claimid.com/nightrose
_______________________________________________
Amarok mailing list
Amarok@...
https://mail.kde.org/mailman/listinfo/amarok

Parent Message unknown Re: Adding Twitter support in Internet Services for Amarok

by Ninad Pundalik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I browsed through the online svn for chqoK at [1], as I had problems
accessing svn directly.  Here is what I undesrtood.  They have a
class, which according to the preferences of the users, constructs a
string by pulling the track information using DBus.  This string is
then passed on to the class that handles the Quick Tweet dialog box,
where the user can edit the tweet string, and then tell choqoK to post
it.  choqoK then makes the POST request to Twitter using a KUrl
object.

These are pretty much the steps that we can follow as well.  However,
I have absolutely no clue if we can/should integrate almost the entire
choqoK backend code to do this.  choqoK currently supports Twitter and
Identi.ca.  If we do this, we could aim at posting to both.  I hope
that the powers that be will guide me/us :).

> Unfortunately Nikolaj just went off to Amsterdam but he'll be back in
> a few days. Meanwhile hopefully other people here can help you.
>
>
> Cheers
> Lydia

OK.  Then, we wait till he comes.  Till then, maybe I could spend time
getting acquainted with the code and studying up Qt/C++ in my spare
time.

[1] - http://websvn.kde.org/trunk/extragear/network/choqok/

Cheers :)
Ninad S. Pundalik
http://twitter.com/ninadsp
_______________________________________________
Amarok mailing list
Amarok@...
https://mail.kde.org/mailman/listinfo/amarok

Re: Adding Twitter support in Internet Services for Amarok

by Kolja Dummann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Ninad,

I just found a web service that is exactly doing the thing you described
below. Not especially for amarok, it uses the last.fm api to do that
independent from the client or service that you are using to love a
track.

http://lastfmlovetweet.com/

cheers Kolja.

Am Donnerstag, den 08.10.2009, 09:49 +0530 schrieb Ninad Pundalik:

> Hi!
>
> A few days back, I'd visited the IRC channel to discuss this idea, of
> integrating Twitter with the Internet Services framework in Amarok.
> Due to college exams, I was unable to work on the idea, and hence,
> this mail comes a little late.
>
> I'd love to implement a feature similar to the Last.fm Love a track,
> where the user can click on a button and their Twitter profile will
> get updated with the track info for the song that is being played
> currently (i.e., we post a tweet :) ).  The simplest way to implement
> this, would be to create a Scripted Service.  Correct me if I am wrong
> here, but this will post every song that the user listens to, which
> will be spamming his timeline with tweets about his songs.  So that
> would leave an option of writing a script/plugin similar to Last.fm,
> which, as I mentioned above, will be triggered by the user.
>
> I have done a little web development at an internship, so I have a
> working knowledge of Javascript.  I also am well acquainted with the
> Twitter API (though I admit it isn't too difficult/vast at the
> moment).  I will need lots of help with the Amarok source, as I have
> never worked in Qt, C++ and the KDE libraries :).  Please point me to
> a few resources that I can start off with, so that I can understand
> the necessary part of the code before I begin to actually write some
> code.  Also, this is my first attempt at contributing to an open
> source project, so please correct me when I screw up.  I've been a
> happy user of Amarok for almost 2 years now, and would like to give
> back to the community. :)
>
> Thanx for all the help!
>
> Ninad S. Pundalik
> http://twitter.com/ninadsp
>
> PS: At the moment, my idea is to implement this with Basic
> Authentication for Twitter.  However, I also have a rough idea of how
> to implement it with OAuth.  Will work on it as I figure out things
> around here.
> _______________________________________________
> Amarok mailing list
> Amarok@...
> https://mail.kde.org/mailman/listinfo/amarok


_______________________________________________
Amarok mailing list
Amarok@...
https://mail.kde.org/mailman/listinfo/amarok

signature.asc (204 bytes) Download Attachment