Do

Plugin idea: Identi.ca

Asked by Pablo Estefó

Hi there,
I've noticed that a Twitter plugin exists, but why not an Identi.ca plugin?
In my case, I've my Identi.ca's and Twitter's account linked, for example: when I post sth. by Identi.ca that posts appears automatically on my Twitter page.
If you could help me with some info about how to make my own plugin It would be great, I've been searching without any success.
Cheers
Pablo Estefó C.

PS: Sorry about my english, it's very poor =(, but i'm learning >=).

Question information

Language:
English Edit question
Status:
Solved
For:
Do Edit question
Assignee:
No assignee Edit question
Solved by:
Elliot Murphy
Solved:
Last query:
Last reply:
Revision history for this message
Best Elliot Murphy (statik) said :
#1

Pablo Estefó wrote:
> New question #50737 on GNOME Do:
> https://answers.launchpad.net/do/+question/50737
>
> Hi there,
> I've noticed that a Twitter plugin exists, but why not an Identi.ca plugin?
> In my case, I've my Identi.ca's and Twitter's account linked, for example: when I post sth. by Identi.ca that posts appears automatically on my Twitter page.
> If you could help me with some info about how to make my own plugin It would be great, I've been searching without any success.
> Cheers
> Pablo Estefó C.
>
>
> PS: Sorry about my english, it's very poor =(, but i'm learning >=).
>

identi.ca supports the exact same API as twitter. You could do two things:

1) make a complete copy of the twitter plugin, change the name, and
change the base URL for the API.

2) Add a option to the twitter plugin allowing a user to select whether
it posts to identi.ca or twitter (or both).

I think number 2 is a much better option, and probably pretty easy to
do. The first, smallest step that I would try is adding a checkbox that
says "Post to identi.ca instead of twitter". In the code, if that option
is selected, then use the identi.ca base URL rather than the twitter one
- everything else should just work. You may decide that is good enough,
since identi.ca can forward your dent on to twitter.

If you want to go farther, once you have that working, then you could
extend the configuration to allow people to enter both twitter and
identi.ca account information, and change the checkbox to a radio buttton:

 ( ) Post to twitter
 ( ) Post to identi.ca
 (*) Post to both!

--
Elliot Murphy | https://launchpad.net/~statik/

Revision history for this message
Pablo Estefó (pestefo) said :
#2

Thanks Elliot Murphy, that solved my question.

Revision history for this message
Pablo Saavedra (pablo-a-saavedra) said :
#3

Actually, it would be even better to allow for arbitrary url configuration, so we can, for instance, post messages to a corporate status.net server.

Any ideas how it could be accomplished?